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 MBS_URL = "http://copr-fe-dev.cloud.fedoraproject.org/module/1/module-builds/" 47 48 # primary log file 49 LOG_FILENAME = "/var/log/copr-frontend/frontend.log" 50 LOG_DIR = "/var/log/copr-frontend/" 51 52 INTRANET_IPS = ["127.0.0.1"] 53 DEBUG = True 54 55 REPO_GPGCHECK = 1 56 57 SRPM_STORAGE_DIR = "/var/lib/copr/data/srpm_storage/" 58 59 LAYOUT_OVERVIEW_HIDE_QUICK_ENABLE = False 60 61 # We enable authentication against FAS by default. 62 FAS_LOGIN = True 63 64 LOGIN_INFO = { 65 'user_link': 'https://admin.fedoraproject.org/accounts/user/view/{username}/', 66 'user_desc': 'fas' 67 }68 6971 DEBUG = False 72 # SECRET_KEY = "put_some_secret_here" 73 # BACKEND_PASSWORD = "password_here" 74 # SQLALCHEMY_DATABASE_URI = "postgresql+psycopg2://login:password@/db_name" 75 PUBLIC_COPR_HOSTNAME = "copr.fedoraproject.org"76 7779 DEBUG = True 80 SQLALCHEMY_ECHO = True 81 82 ENFORCE_PROTOCOL_FOR_BACKEND_URL = "http" 83 ENFORCE_PROTOCOL_FOR_FRONTEND_URL = "http" 84 85 PUBLIC_COPR_HOSTNAME = "localhost:5000"86 8789 CSRF_ENABLED = False 90 DATABASE = os.path.abspath("tests/data/copr.db") 91 OPENID_STORE = os.path.abspath("tests/data/openid_store") 92 WHOOSHEE_DIR = os.path.abspath("tests/data/whooshee") 93 94 # SQLAlchemy 95 SQLALCHEMY_DATABASE_URI = "sqlite:///" + os.path.abspath(DATABASE) 96 97 PUBLIC_COPR_HOSTNAME = "localhost:5000"98
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 | http://epydoc.sourceforge.net |