Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Dynamic Configuration

kping0 edited this page Sep 6, 2018 · 4 revisions

Dynamic Configuration

To separate each user who runs the process, both SSC (Client) and SSCS (Server) save any (non compile) custom configuration in a folder in the home directory. The client saves everything customized in ~/.ssc_conf/ and the server in ~/.sscs_conf/ . This has the advantage that the binary can be used by multiple users and that the server binary does not contain any sensitive information and that the server does not need to be recompiled for every change to configuration. The configuration is stored at ~/.sscs_conf/sscs_config

Changing the config

You can change the config by hand, but it is not very user friendly because all of the values are stored in base64. To make changing configuration easier, we created a tool:

./ssc_server_config
#USAGE:   ./ssc_server_config [TYPE] [LABEL] [DATA]
#EXAMPLE: ./ssc_server_config int label_for_integer 10
#EXAMPLE: ./ssc_server_config str label_for_string this is sample string
#EXAMPLE: ./ssc_server_config data label_for_data path_to_file_with_data
#EXAMPLE: ./ssc_server_config unset label_to_be_removed

You specify the type of data stored with the label ( Integer[int], String[str], Data File[data] ) or the unset option to remove the label and its data from the configuration.

Standard dynamic Variables

These are the names of the labels that SSCS reads from the config and their usages.

SSCS_LOGFILE

Type: [str]. Usage: Path to logfile (DEFAULT ~/.sscs_conf/ssc_server.log). To change:

ssc_server_config str SSCS_LOGTOFILE /path/to/logfile.log

SSCS_CERTFILE

Type: [str]. Usage: Path to SSL Cert File (Public Key) (DEFAULT ~/.sscs_conf/cert.pem). To change:

ssc_server_config str SSCS_CERTFILE /path/to/cert.pem

SSCS_KEYFILE

Type: [str]. Usage: Path to SSL Key File (Private Key) (DEFAULT ~/.sscs_conf/key.pem). To change:

ssc_server_config str SSCS_CERTFILE /path/to/key.pem

SSCS_KEYFILE_PW

Type: [str]. Usage: Passphrase for SSL Key file (located at SSCS_KEYFILE). To change:

ssc_server_config str SSCS_KEYFILE_PW [insert_your_passphrase_here]

SSCDB_SRV

Type: [str]. Usage: IP-Address / domain-name for Mysql-Server. To change:

ssc_server_config str SSCDB_SRV [domain_or_ip]

SSCDB_USR

Type: [str]. Usage: Username to login to Mysql-Server SSCDB_SRV. To change:

ssc_server_config str SSCDB_USR [username]

SSCDB_PASS

Type: [str]. Usage: Password that goes along with SSCDB_USR to login to SSCDB_SRV. To change:

ssc_server_config str SSCDB_PASS [password]

SSCS_LOGTOFILE

Type: [int]. Usage: Integer that determines if SSCS outputs to (STDOUT & STDERR) OR SSCS_LOGFILE. To change:

ssc_server_config int SSCS_LOGTOFILE [1 OR 0]

Further questions

Please mail any questions you have to kping0@protonmail.com or open an issue on github.