2014-06-17 17:52:59 +02:00
|
|
|
# Beware that the quotes around the values are mandatory
|
|
|
|
|
|
|
|
|
|
### Secret key for the Flask application
|
|
|
|
|
SECRET_KEY='{{ kerneltest_secret_key }}'
|
|
|
|
|
|
|
|
|
|
### url to the database server:
|
|
|
|
|
#DB_URL=mysql://user:pass@host/db_name
|
|
|
|
|
#DB_URL=postgres://user:pass@host/db_name
|
2020-06-02 10:23:36 -07:00
|
|
|
DB_URL='postgresql://{{ kerneltest_db_user }}:{{ kerneltest_db_pass }}@db01.iad2.fedoraproject.org/{{ kerneltest_db_name }}'
|
2014-06-17 17:52:59 +02:00
|
|
|
|
|
|
|
|
# Specify where the logs of the tests should be stored
|
|
|
|
|
LOG_DIR = '/var/www/logs'
|
|
|
|
|
|
|
|
|
|
# API key used to authenticate the autotest client, should be private as well
|
2014-06-18 19:05:24 +02:00
|
|
|
API_KEY = '{{ kerneltest_api_key }}'
|
2014-06-17 17:52:59 +02:00
|
|
|
|
|
|
|
|
# Email of the admin that should receive the error emails
|
|
|
|
|
MAIL_ADMIN = 'pingou@pingoured.fr'
|
|
|
|
|
|
|
|
|
|
# FAS group or groups (provided as a list) in which should be the admins
|
|
|
|
|
# of this application
|
|
|
|
|
ADMIN_GROUP = ['sysadmin-kernel', 'sysadmin-main']
|
|
|
|
|
|
|
|
|
|
# List of MIME types allowed for upload in the application
|
2014-06-18 19:04:53 +02:00
|
|
|
ALLOWED_MIMETYPES = ['text/plain', 'text/x-log']
|
2014-06-17 17:52:59 +02:00
|
|
|
|
2015-02-25 15:50:37 +01:00
|
|
|
# Restrict the size of content uploaded, this is 25Kb
|
2015-02-25 15:41:25 +01:00
|
|
|
MAX_CONTENT_LENGTH = 1024 * 25
|
2014-11-07 10:27:29 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
# This is required to fix login
|
|
|
|
|
PREFERRED_URL_SCHEME='https'
|
|
|
|
|
|
2015-02-04 15:34:31 +01:00
|
|
|
# Make browsers send session cookie only via HTTPS
|
|
|
|
|
SESSION_COOKIE_SECURE = True
|
|
|
|
|
|
2014-11-07 10:27:29 +01:00
|
|
|
{% if env == 'staging' %}
|
2017-06-21 20:58:24 +00:00
|
|
|
FAS_OPENID_ENDPOINT = 'https://id.stg.fedoraproject.org/openid/'
|
2014-11-07 10:27:29 +01:00
|
|
|
{% endif %}
|
|
|
|
|
|
2016-03-05 09:44:25 +01:00
|
|
|
# URL to where are located the fedmenu js files
|
|
|
|
|
FEDMENU_URL = 'https://apps.fedoraproject.org/fedmenu/'
|
|
|
|
|
# URL to where is the data to load/show in fedmenu
|
|
|
|
|
FEDMENU_DATA_URL = 'https://apps.fedoraproject.org/js/data.js'
|