-
Notifications
You must be signed in to change notification settings - Fork 0
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
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.
Type: [str]. Usage: Path to logfile (DEFAULT ~/.sscs_conf/ssc_server.log). To change:
ssc_server_config str SSCS_LOGTOFILE /path/to/logfile.log
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
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
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]
Type: [str]. Usage: IP-Address / domain-name for Mysql-Server. To change:
ssc_server_config str SSCDB_SRV [domain_or_ip]
Type: [str]. Usage: Username to login to Mysql-Server SSCDB_SRV. To change:
ssc_server_config str SSCDB_USR [username]
Type: [str]. Usage: Password that goes along with SSCDB_USR to login to SSCDB_SRV. To change:
ssc_server_config str SSCDB_PASS [password]
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]