Trees | Indices | Help |
---|
|
1 import os 2 import logging 3 46 DATA_DIR = os.path.join(os.path.dirname(__file__), "../../data") 7 DATABASE = os.path.join(DATA_DIR, "copr.db") 8 OPENID_STORE = os.path.join(DATA_DIR, "openid_store") 9 WHOOSHEE_DIR = os.path.join(DATA_DIR, "whooshee") 10 SECRET_KEY = "THISISNOTASECRETATALL" 11 BACKEND_PASSWORD = "thisisbackend" 12 BACKEND_BASE_URL = "http://copr-be-dev.cloud.fedoraproject.org" 13 14 KRB5_LOGIN_BASEURI = "/krb5_login/" 15 KRB5_LOGIN = {} 16 17 # restrict access to a set of users 18 USE_ALLOWED_USERS = False 19 ALLOWED_USERS = [] 20 21 # SQLAlchemy 22 SQLALCHEMY_DATABASE_URI = "sqlite:///" + os.path.abspath(DATABASE) 23 24 # Token length, defaults to 30, DB set to varchar 255 25 API_TOKEN_LENGTH = 30 26 27 # Expiration of API token in days 28 API_TOKEN_EXPIRATION = 180 29 30 # logging options 31 SEND_LOGS_TO = ["root@localhost"] 32 LOGGING_LEVEL = logging.DEBUG 33 34 SEND_LEGAL_TO = ["root@localhost"] 35 36 # post-process url leading to backend 37 # possible options: None, "http", "https" 38 ENFORCE_PROTOCOL_FOR_BACKEND_URL = None 39 # post-process url leading to frontend 40 ENFORCE_PROTOCOL_FOR_FRONTEND_URL = None 41 42 PUBLIC_COPR_HOSTNAME = "copr-fe-dev.cloud.fedoraproject.org" 43 44 DIST_GIT_URL = None 45 COPR_DIST_GIT_LOGS_URL = None 46 47 # primary log file 48 LOG_FILENAME = "/var/log/copr-frontend/frontend.log" 49 LOG_DIR = "/var/log/copr-frontend/" 50 51 INTRANET_IPS = ["127.0.0.1"] 52 DEBUG = True 53 54 REPO_GPGCHECK = 1 55 56 SRPM_STORAGE_DIR = "/var/lib/copr/data/srpm_storage/" 57 58 LAYOUT_OVERVIEW_HIDE_QUICK_ENABLE = False 59 60 # We enable authentication against FAS by default. 61 FAS_LOGIN = True 62 63 LOGIN_INFO = { 64 'user_link': 'https://admin.fedoraproject.org/accounts/user/view/{username}/', 65 # 'user_desc': 'FAS' 66 }67 6870 DEBUG = False 71 # SECRET_KEY = "put_some_secret_here" 72 # BACKEND_PASSWORD = "password_here" 73 # SQLALCHEMY_DATABASE_URI = "postgresql+psycopg2://login:password@/db_name" 74 PUBLIC_COPR_HOSTNAME = "copr.fedoraproject.org"75 7678 DEBUG = True 79 SQLALCHEMY_ECHO = True 80 81 ENFORCE_PROTOCOL_FOR_BACKEND_URL = "http" 82 ENFORCE_PROTOCOL_FOR_FRONTEND_URL = "http" 83 84 PUBLIC_COPR_HOSTNAME = "localhost:5000"85 8688 CSRF_ENABLED = False 89 DATABASE = os.path.abspath("tests/data/copr.db") 90 OPENID_STORE = os.path.abspath("tests/data/openid_store") 91 WHOOSHEE_DIR = os.path.abspath("tests/data/whooshee") 92 93 # SQLAlchemy 94 SQLALCHEMY_DATABASE_URI = "sqlite:///" + os.path.abspath(DATABASE) 95 96 PUBLIC_COPR_HOSTNAME = "localhost:5000"97
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 | http://epydoc.sourceforge.net |