Using configuration files#
The default locations for each component’s configuration files are:
Server—
/opt/wakari/wakari-server/etc/wakari/config.json
.Gateway—
/opt/wakari/wakari-gateway/etc/wakari/config.json
.Compute—
/opt/wakari/wakari-compute/etc/wakari/config.json
.
Additionally, service-specific configuration files may also be present in the following locations:
Server—
/opt/wakari/wakari-server/etc/wakari/wk-server-config.json
.Gateway—
/opt/wakari/wakari-gateway/etc/wakari/wk-gateway-config.json
.Compute—
/opt/wakari/wakari-compute/etc/wakari/wk-compute-config.json
.
Each service loads each of the configuration files in the following order and updates the AEN configuration at each step:
/etc/wakari/config.json
./etc/wakari/wk-gateway-config.json
./opt/wakari/wakari-SERVICE/etc/wakari/config.json
./opt/wakari/wakari-SERVICE/etc/wakari/wk-SERVICE-config.json
../config.json
../wk-gateway-config.json
.
AEN configuration keys#
The following is a list of AEN supported configuration keys:
Key |
Default |
Description |
---|---|---|
|
|
The location of static assets. |
|
|
The name of the AEN database in mongodb. |
|
|
The URL of your AEN server’s mongodb instance. Format:
|
|
The URL of this AEN server. |
|
|
|
The default project privacy setting—can be either |
|
|
The cookie name used to maintain Anaconda Enterprise Notebooks Enterprise login sessions. |
|
|
Sets cookie session to permanent. This will keep the session open after the browser is closed. The session will still expire after the number of minutes set in the SESSION_LIFETIME key. |
|
|
Time in minutes until the session expires. The counter resets with each request. |
|
|
Sets whether AEN will use Amazon SES to send emails. |
|
Sets the SMTP email settings. |
|
|
A SMTP subkey—the SMTP mail server hostname. |
|
|
SMTP subkey—the username for SMTP server authentication. |
|
|
SMTP subkey—the password for SMTP server authentication. |
|
|
SMTP subkey—the From address for emails sent through SMTP. |
|
|
|
A boolean setting that indicates whether your AEN server should verify the gateway SSL certificate. |
|
|
The account provider class. For LDAP, this should be set to |
|
|
A boolean setting that indicates whether unique user email addresses are required. See note below about updating the database when setting |
|
|
Boolean for retrieving the avatar from the gravatar URL. If false a local default is used instead. |
|
|
LDAP configurations. |
|
LDAP subkey—A list of LDAP servers. At least one server name must be listed. The primary server should be listed first. All secondary or fail-over servers should be listed after the primary. |
|
|
|
LDAP subkey—The LDAP port on the LDAP server. |
|
LDAP subkey—LDAP Authentication types. |
|
|
LDAP subkey—the full path to the TLS certificate file. The certificate file must also be provided by the Enterprise. |
|
|
LDAP subkey—the LDAP Base DN value. |
|
|
LDAP subkey—a list of Organizational Units. Some enterprises group users by OUs in their LDAP server records. AEN will loop over the list of OUs when authenticating a user. The OU value is a list of lists to support multiple OUs where each OU is a single name or a hierarchy of names. |
|
|
|
Username—such as |
|
|
Boolean indicating whether ElasticSearch is enabled |
|
|
IP address or domain name and port of ElasticSearch server |
|
|
Log verbosity. One of: ‘ERROR’ ‘WARN’ ‘INFO’ ‘DEBUG’ |
NOTE: If you set uniqueEmail
to false
, you must drop the existing index in the database. EXAMPLE: If the index name is email_1
, run db.users.dropIndex("email_1")
.
Key |
Default |
Description |
---|---|---|
|
The URL of the AEN |
|
|
8089 |
The Port number used by the gateway application. Must be a non-privileged port (>= 1024). |
|
The client ID assigned to this gateway by the server during |
|
|
The Client secret assigned to this gateway by the server during |
|
|
600 |
Timeout in seconds. The default is 10 minutes to allow project creation. |
|
|
Log verbosity. One of: ‘error’ ‘warn’ ‘info’ ‘debug’. |
|
Enable SSL encryption. For more information, see Configuring SSL. |
|
|
A https subkey–Path to gateway key. |
|
|
A https subkey–Path to gateway cert. |
|
|
A https subkey–Required if cert was signed by a private root CA or signed by an intermediate authority. It must contain separate values for the paths to the CA root, any intermediates and the certificate for the Server. |
|
|
A https subkey–Passphrase required to decrypt SSL certs. |
Key |
Default |
Description |
---|---|---|
|
The URL of the AEN |
|
|
|
A boolean setting that indicates whether AEN should manage system user accounts. Set to false for LDAP installations. |
|
|
|
|
2227 |
The port number used by the compute-launcher application. Note that individual applications use dynamic ports. |
|
|
The location of project file storage. |
|
|
Log verbosity. One of: ‘error’ ‘warn’ ‘info’ ‘debug’ |
|
10000000 |
Max size in bytes of the logfile. Default is 10 MB. If the size is exceeded then a new file is created and a counter will become a suffix of the log file. |
|
30 |
Limit the number of files created when the size of the logfile is exceeded |
|
172800000 (48 hours) |
The amount of idle time before applications will be auto-terminated (in msec). |
|
3600000 (1 hour) |
The frequency of idle checks. |
|
|
A boolean setting that indicates whether numeric usernames are permitted. |
|
600 |
The time before a timeout—in seconds. The default is 10 minutes—600 seconds—to allow time for project creation. |
|
|
Username such as |
|
|
A boolean setting. When |
Key |
Default |
Description |
---|---|---|
|
|
A list of compute provider classes. |
|
262144000 |
The size of the Mongo action log in bytes. |
|
A list of site administrator email addresses—used for crash notifications and LDAP password reset requests. |
|
|
|
|
|
|
A boolean setting that indicates whether unique usernames are required. |
Key |
Default |
Description |
---|---|---|
|
|
The location of static assets. |
|
|
A boolean that indicates whether subdomains are being used. |
|
|
Idle time in milliseconds before the Gateway session expires. |
Key |
Default |
Description |
---|---|---|
|
|
The location of static assets. |
|
|
Sets whether AEN will use Amazon SES to send emails. |
|
|
A boolean that indicates whether multi-user support is enabled. |
|
|
A boolean that indicates whether multi-project support is enabled. |
|
|
The location of your Anaconda installation. |
|
|
The directory where application logs are stored. |
|
|
The directory where application PID files are stored. |
|
|
The path to the compute launcher log. |
|
|
Path to compute launcher access log |
Checking configuration file syntax#
To verify that the configuration file contains valid JSON, run:
root@server # python -m json.tool /opt/wakari/wakari-server/etc/wakari/*.json
root@gateway # python -m json.tool /opt/wakari/wakari-gateway/etc/wakari/*.json
root@compute # python -m json.tool /opt/wakari/wakari-compute/etc/wakari/*.json
If the file is correct, the contents are displayed.
If there is a syntax error in the file, a “No JSON object could be decoded” message is displayed instead.
To fix any errors, edit the configuration file and verify that it contains the correct JSON syntax.