import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), '../tools')) from linaro_metrics.settings import * # NOQA DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': '{{db_name}}', 'USER': '{{db_user}}', 'PASSWORD': '{{db_password}}', 'HOST': 'localhost', }, 'orig': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'patchwork-orig', 'USER': '{{db_user}}', 'PASSWORD': '{{db_password}}', 'HOST': 'localhost', }, } ALLOWED_HOSTS = [ '*', ] SECRET_KEY = '{{secret_key}}' TIME_ZONE = 'UTC' ADMINS = ( ('linaro-infrastructure', 'linaro-infrastructure-errors@linaro.org'), ) DEFAULT_FROM_EMAIL = 'Patchwork ' NOTIFICATION_FROM_EMAIL = DEFAULT_FROM_EMAIL ENABLE_REST_API = True STATIC_ROOT = '{{install_base}}/{{hostname}}/static' IMAP_SERVER = '{{imap_server}}' IMAP_USER = '{{imap_user}}' IMAP_PASS = '{{imap_pass}}' GITHUB_OAUTH_TOKEN = '{{github_oauth_token}}' CROWD_USER = '{{crowd_user}}' CROWD_PASS = '{{crowd_pass}}' CROWD_URL = '{{crowd_url}}' REPO_DIR = '{{install_base}}/{{hostname}}/repos' DEFAULT_PROJECTS = [] AUTH_CROWD_ALWAYS_UPDATE_USER = False AUTH_CROWD_ALWAYS_UPDATE_GROUPS = False AUTH_CROWD_CREATE_GROUPS = False AUTH_CROWD_APPLICATION_USER = CROWD_USER AUTH_CROWD_APPLICATION_PASSWORD = CROWD_PASS AUTH_CROWD_SERVER_REST_URI = CROWD_URL AUTHENTICATION_BACKENDS = ('linaro_metrics.backends.LowerCaseCrowdBackend',) # 240s works well for most repos, but linux-next based repos have to do a # really large git-gc about once a week. Based on rough testing, that can # take about 15 minutes. Based on all the runs we've done of this, nothing # other than linux-next repos ever go over 240s, so making this a big number # safe and will stop the timeout emails we get from cron REPO_TIMEOUT = 60 * 15 # Enables update_commited_patches.py to run git tag credits UPDATE_COMMIT_CALLBACK = 'linaro_metrics.team_project_credit:update_commit_callback_constructor' SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')