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 OPENID_PROVIDER_URL = "https://id.fedoraproject.org" 18 19 # restrict access to a set of users 20 USE_ALLOWED_USERS = False 21 ALLOWED_USERS = [] 22 23 # SQLAlchemy 24 SQLALCHEMY_DATABASE_URI = "sqlite:///" + os.path.abspath(DATABASE) 25 26 # Token length, defaults to 30, DB set to varchar 255 27 API_TOKEN_LENGTH = 30 28 29 # Expiration of API token in days 30 API_TOKEN_EXPIRATION = 180 31 32 # logging options 33 SEND_LOGS_TO = ["root@localhost"] 34 LOGGING_LEVEL = logging.DEBUG 35 36 SEND_LEGAL_TO = ["root@localhost"] 37 38 # post-process url leading to backend 39 # possible options: None, "http", "https" 40 ENFORCE_PROTOCOL_FOR_BACKEND_URL = None 41 # post-process url leading to frontend 42 ENFORCE_PROTOCOL_FOR_FRONTEND_URL = None 43 44 PUBLIC_COPR_BASE_URL = "https://copr-fe-dev.cloud.fedoraproject.org" 45 PUBLIC_COPR_HOSTNAME = "copr-fe-dev.cloud.fedoraproject.org" 46 47 DIST_GIT_URL = None 48 COPR_DIST_GIT_LOGS_URL = None 49 MBS_URL = "http://copr-fe-dev.cloud.fedoraproject.org/module/1/module-builds/" 50 51 # primary log file 52 LOG_FILENAME = "/var/log/copr-frontend/frontend.log" 53 LOG_DIR = "/var/log/copr-frontend/" 54 55 INTRANET_IPS = ["127.0.0.1"] 56 DEBUG = True 57 58 REPO_GPGCHECK = 1 59 60 # should baseurls in '.repo' files always use http:// links? 61 REPO_NO_SSL = False 62 63 STORAGE_DIR = "/var/lib/copr/data/srpm_storage/" 64 65 LAYOUT_OVERVIEW_HIDE_QUICK_ENABLE = False 66 67 # We enable authentication against FAS by default. 68 FAS_LOGIN = True 69 70 LOGIN_INFO = { 71 'user_link': 'https://admin.fedoraproject.org/accounts/user/view/{username}/', 72 'user_desc': 'fas' 73 } 74 75 # Optional, news box shows only when both variables are configured 76 NEWS_URL = "https://fedora-copr.github.io/" 77 NEWS_FEED_URL = "https://fedora-copr.github.io/feed.xml"78 7981 DEBUG = False 82 # SECRET_KEY = "put_some_secret_here" 83 # BACKEND_PASSWORD = "password_here" 84 # SQLALCHEMY_DATABASE_URI = "postgresql+psycopg2://login:password@/db_name" 85 PUBLIC_COPR_HOSTNAME = "copr.fedoraproject.org"86 8789 DEBUG = True 90 SQLALCHEMY_ECHO = True 91 92 ENFORCE_PROTOCOL_FOR_BACKEND_URL = "http" 93 ENFORCE_PROTOCOL_FOR_FRONTEND_URL = "http" 94 95 PUBLIC_COPR_HOSTNAME = "localhost:5000"96 9799 CSRF_ENABLED = False 100 DATABASE = os.path.abspath("tests/data/copr.db") 101 OPENID_STORE = os.path.abspath("tests/data/openid_store") 102 WHOOSHEE_DIR = os.path.abspath("tests/data/whooshee") 103 104 # SQLAlchemy 105 SQLALCHEMY_DATABASE_URI = "sqlite:///" + os.path.abspath(DATABASE) 106 107 PUBLIC_COPR_HOSTNAME = "localhost:5000"108
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 | http://epydoc.sourceforge.net |