Skip to content

Configuration settings

Default settings are configured to provide a testing/development environment. For a production setup it is recommended to adjust them following your target environment.

The configuration is loaded from environment variables file placed in the folder docker/environment_variables.

Database

DB_ROOT_PASSWORD

Set the database root/superuser password

DATABASE

Default: default

Setup mysql database usage Set to psql for postgres SQL usage

DB_DATABASE

Default: squest_db

Database name.

DB_USER

Default: squest_user

User used to connect to the DB_DATABASE name.

DB_PASSWORD

Default: squest_password

Password of the DB_USER username.

DB_HOST

Default: 127.0.0.1

Database host. The default value is localhost to match the development configuration. Switch to db in production when using the docker-compose based deployment.

DB_PORT

Default: 3306

Database port.

Authentication

LDAP

LDAP_ENABLED

Default: False

Set to True to enable LDAP based authentication.

AUTH_LDAP_SERVER_URI

Default: ldap:port

Set the LDAP serveur URI and port

AUTH_LDAP_BIND_DN

Default: cn=service_account_name,ou=Applications,o=domain.com

Set the LDAP DN to authenticate to the LDAP serveur

AUTH_LDAP_BIND_PASSWORD

Default: NONE

Associated to AUTH_LDAP_BIND_DN, password used to authenticate DN

Default: ou=People,o=domain.com

User search patern

AUTH_LDAP_ATTR_FIRSTNAME

Default: givenName

set the LDAP "first_name" attribute

AUTH_LDAP_ATTR_LASTNAME

Default: sn

set the LDAP "last_name" attribute

AUTH_LDAP_ATTR_MAIL

Default: mail

set the LDAP "email" attribute

DEFAULT_ADMIN_TOKEN

Default: None

Set an API token that will be linked to the admin user when starting Squest.

LOGIN_HELPER_TEXT

Default: None

Add a custom note into the login page that helps user to know what are the expected credentials. HTML text is supported.

E.G: "Use your corporate email and password".

Squest

MAINTENANCE_MODE_ENABLED

Default: False

When enabled, only administrators can access squest UI and API. This can be used for example to block new requests by end users from the service catalog. So an administrator can perform operations against the API like migrating instance specs.

Note

This can also be set on the fly from the admin panel (top right corner of the UI) in the object Squest settings.

SQUEST_HOST

Default: http://squest.domain.local

Address of the Squest portal instance. Used in email templates and in metadata sent to Red Hat Ansible Automation Platform/AWX job templates.

SQUEST_EMAIL_HOST

Default: squest@squest.domain.local

Domain name used as email sender. E.g: "squest@squest.domain.local".

SQUEST_EMAIL_NOTIFICATION_ENABLED

Default: Based on DEBUG value by default

Set to True to enable email notifications.

IS_DEV_SERVER

Default: False

Set to True to change the navbar and footer color to visually identify a testing instance of Squest.

SMTP

EMAIL_HOST

Default: localhost

The SMTP host to use for sending email.

EMAIL_PORT

Default: 25

Port to use for the SMTP server defined in EMAIL_HOST.

Backup

BACKUP_ENABLED

Default: False

Switch to True to enable backup. Refer to the dedicated documentation.

BACKUP_CRONTAB

Default: 0 1 * * *

Crontab line for backup. By default, the backup is performed every day at 1AM.

DBBACKUP_CLEANUP_KEEP

Default: 5

Number of db backup file to keep. Doc.

DBBACKUP_CLEANUP_KEEP_MEDIA

Default: 5

Number of media backup tar to keep. Doc.

Metrics

METRICS_ENABLED

Default: False

Switch to True to enable Prometheus metrics page.

METRICS_PASSWORD_PROTECTED

Default: True

Switch to False to disable the basic authentication on metrics page.

METRICS_AUTHORIZATION_USERNAME

Default: admin

Username for the basic authentication of the metrics page.

METRICS_AUTHORIZATION_PASSWORD

Default: admin

Password for the basic authentication of the metrics page.

Auto cleanup

DOC_IMAGES_CLEANUP_ENABLED

Default: False

Switch to True to enable automatic cleanup of ghost docs images from media folder.

DOC_IMAGES_CLEANUP_CRONTAB

Default: 30 1 * * *

Crontab line for ghost image cleanup. By default performed every day at 1:30 AM.

Production

SECRET_KEY

Default: Default randomly-generated

Django secret key used for cryptographic signing. Doc.

DEBUG

Default: True

Django DEBUG mode. Switch to False for production.

ALLOWED_HOSTS

Default: *

Comma separated list of allowed FQDN. Refer to the complete documentation.

CELERY_BROKER_URL

Default: amqp://rabbitmq:rabbitmq@localhost:5672/squest

RabbitMQ message broker URL. The default value is localhost to match the development configuration. Replace localhost by rabbitmq in production when using the docker-compose based deployment.

CELERY_TASK_SOFT_TIME_LIMIT

Default: 300

Async task execution timeout. Doc.

LANGUAGE_CODE

Default: en-us

Django language. Doc

TIME_ZONE

Default: Europe/Paris

Time zone of the server that host Squest service. Doc

DATE_FORMAT

Default: %d %b, %Y %H:%M

Change the format of all date in Squest UI. Based on Python strftime.

Plugins

FIELD_VALIDATOR_PATH

Path to form field validation modules.

Default: plugins/field_validators