Trees | Indices | Help |
---|
|
1 import os 2 import logging 3 46 ENV = "devel" 7 DATA_DIR = os.path.join(os.path.dirname(__file__), "../../data") 8 DATABASE = os.path.join(DATA_DIR, "copr.db") 9 OPENID_STORE = os.path.join(DATA_DIR, "openid_store") 10 WHOOSHEE_DIR = os.path.join(DATA_DIR, "whooshee") 11 SECRET_KEY = "THISISNOTASECRETATALL" 12 BACKEND_PASSWORD = "thisisbackend" 13 BACKEND_BASE_URL = "http://copr-be-dev.cloud.fedoraproject.org" 14 15 KRB5_LOGIN_BASEURI = "/krb5_login/" 16 KRB5_LOGIN = {} 17 18 OPENID_PROVIDER_URL = "https://id.fedoraproject.org" 19 20 # restrict access to a set of users 21 USE_ALLOWED_USERS = False 22 ALLOWED_USERS = [] 23 24 # SQLAlchemy 25 SQLALCHEMY_DATABASE_URI = "sqlite:///" + os.path.abspath(DATABASE) 26 27 # Token length, defaults to 30, DB set to varchar 255 28 API_TOKEN_LENGTH = 30 29 30 # Expiration of API token in days 31 API_TOKEN_EXPIRATION = 180 32 33 # logging options 34 SEND_LOGS_TO = ["root@localhost"] 35 LOGGING_LEVEL = 'info' 36 37 SEND_LEGAL_TO = ["root@localhost"] 38 REPLY_TO = "copr-devel@lists.fedorahosted.org" 39 40 # post-process url leading to backend 41 # possible options: None, "http", "https" 42 ENFORCE_PROTOCOL_FOR_BACKEND_URL = None 43 # post-process url leading to frontend 44 ENFORCE_PROTOCOL_FOR_FRONTEND_URL = None 45 46 PUBLIC_COPR_BASE_URL = "https://copr-fe-dev.cloud.fedoraproject.org" 47 PUBLIC_COPR_HOSTNAME = "copr-fe-dev.cloud.fedoraproject.org" 48 49 DIST_GIT_URL = None 50 COPR_DIST_GIT_LOGS_URL = None 51 MBS_URL = "http://copr-fe-dev.cloud.fedoraproject.org/module/1/module-builds/" 52 53 # primary log file 54 LOG_FILENAME = "/var/log/copr-frontend/frontend.log" 55 LOG_DIR = "/var/log/copr-frontend/" 56 57 INTRANET_IPS = ["127.0.0.1"] 58 DEBUG = True 59 60 REPO_GPGCHECK = 1 61 62 # should baseurls in '.repo' files always use http:// links? 63 REPO_NO_SSL = False 64 65 STORAGE_DIR = "/var/lib/copr/data/srpm_storage/" 66 67 LAYOUT_OVERVIEW_HIDE_QUICK_ENABLE = False 68 69 # We enable authentication against FAS by default. 70 FAS_LOGIN = True 71 72 LOGIN_INFO = { 73 'user_link': 'https://admin.fedoraproject.org/accounts/user/view/{username}/', 74 'user_desc': 'fas' 75 } 76 77 # Optional, news box shows only when both variables are configured 78 NEWS_URL = "https://fedora-copr.github.io/" 79 NEWS_FEED_URL = "https://fedora-copr.github.io/feed.xml" 80 81 # When the data in EOL chroots should be deleted (in days) 82 DELETE_EOL_CHROOTS_AFTER = 180 83 84 # Days between notification emails about a chroot 85 EOL_CHROOTS_NOTIFICATION_PERIOD = 80 86 87 # We may have a (temporary) chroot that doesn't correspond with /etc/os-release 88 # on a client system, e.g. "rhelbeta-8" chroots in Copr which doesn't match to 89 # any real system, instead it is a temporary alias for "epel-8". In such case, 90 # set this to {"epel-8": "rhelbeta-8"} 91 CHROOT_NAME_RELEASE_ALIAS = {} 92 93 # How many pinned projects a user or group can have 94 PINNED_PROJECTS_LIMIT = 4 95 96 ENABLE_DISCUSSION = False 97 DISCOURSE_URL = '' 98 99 WHITELIST_EMAILS = []100102 DEBUG = False 103 # SECRET_KEY = "put_some_secret_here" 104 # BACKEND_PASSWORD = "password_here" 105 # SQLALCHEMY_DATABASE_URI = "postgresql+psycopg2://login:password@/db_name" 106 PUBLIC_COPR_HOSTNAME = "copr.fedoraproject.org"107 108110 DEBUG = True 111 SQLALCHEMY_ECHO = True 112 113 ENFORCE_PROTOCOL_FOR_BACKEND_URL = "http" 114 ENFORCE_PROTOCOL_FOR_FRONTEND_URL = "http" 115 116 PUBLIC_COPR_HOSTNAME = "localhost:5000"117 118120 CSRF_ENABLED = False 121 DATABASE = os.path.abspath("tests/data/copr.db") 122 OPENID_STORE = os.path.abspath("tests/data/openid_store") 123 WHOOSHEE_DIR = os.path.abspath("tests/data/whooshee") 124 125 # SQLAlchemy 126 SQLALCHEMY_DATABASE_URI = "sqlite:///" + os.path.abspath(DATABASE) 127 128 PUBLIC_COPR_HOSTNAME = "localhost:5000"129
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 | http://epydoc.sourceforge.net |