| |
@@ -0,0 +1,138 @@
|
| |
+ # Purpose of this instance
|
| |
+ # Use "production", "devel", "local" or "test"
|
| |
+ ENV="local"
|
| |
+
|
| |
+ # Directory and files where is stored Copr database files
|
| |
+ #DATA_DIR = '/var/lib/copr/data'
|
| |
+ #DATABASE = '/var/lib/copr/data/copr.db'
|
| |
+ #OPENID_STORE = '/var/lib/copr/data/openid_store'
|
| |
+ #WHOOSHEE_DIR = '/var/lib/copr/data/whooshee'
|
| |
+
|
| |
+ # salt for CSRF codes
|
| |
+ #SECRET_KEY = 'put_some_secret_here'
|
| |
+
|
| |
+ BACKEND_PASSWORD = '1234'
|
| |
+
|
| |
+ # restrict access to a set of users
|
| |
+ #USE_ALLOWED_USERS = False
|
| |
+ #ALLOWED_USERS = ['bonnie', 'clyde']
|
| |
+
|
| |
+ SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://copr-fe:coprpass@database.fedora-copr.svc.cluster.local/coprdb'
|
| |
+
|
| |
+ # Token length, defaults to 30 (max 255)
|
| |
+ #API_TOKEN_LENGTH = 30
|
| |
+
|
| |
+ # Expiration of API token in days
|
| |
+ #API_TOKEN_EXPIRATION = 180
|
| |
+
|
| |
+ # logging options
|
| |
+ #SEND_LOGS_TO = ['root@localhost']
|
| |
+ #LOGGING_LEVEL = logging.ERROR
|
| |
+
|
| |
+ # where to send notice about raised legal flag
|
| |
+ #SEND_LEGAL_TO = ['root@localhost', 'somebody@somewhere.com']
|
| |
+
|
| |
+ # DEBUG = False
|
| |
+ DEBUG = True
|
| |
+ SQLALCHEMY_ECHO = False
|
| |
+
|
| |
+ #CSRF_ENABLED = True
|
| |
+ # as of Flask-WTF 0.9+
|
| |
+ #WTF_CSRF_ENABLED = True
|
| |
+
|
| |
+ # send emails when user's perms change in project?
|
| |
+ SEND_EMAILS = False
|
| |
+
|
| |
+ ## post-process url leading to backend
|
| |
+ ## possible options: None, "http", "https"
|
| |
+ # ENFORCE_PROTOCOL_FOR_BACKEND_URL = "https"
|
| |
+ ## post-process url leading to frontend
|
| |
+ # ENFORCE_PROTOCOL_FOR_FRONTEND_URL = "https"
|
| |
+
|
| |
+ # URLs for fedmenu resources
|
| |
+ #FEDMENU_URL = "http://threebean.org/fedmenu/"
|
| |
+ #FEDMENU_DATA_URL = "http://threebean.org/fedmenu/dev-data.js"
|
| |
+ #or
|
| |
+ #FEDMENU_URL = "https://apps.fedoraproject.org/fedmenu/"
|
| |
+ #FEDMENU_DATA_URL = "https://apps.fedoraproject.org/js/data.js"
|
| |
+
|
| |
+ PUBLIC_COPR_HOSTNAME = 'sample.copr.org'
|
| |
+ PUBLIC_COPR_BASE_URL = 'https://sample.copr.org'
|
| |
+
|
| |
+ BACKEND_BASE_URL = 'https://sample.copr.org'
|
| |
+ DIST_GIT_CLONE_URL = 'http://copr-distgit:5001/git'
|
| |
+ DIST_GIT_URL = 'https://sample.copr.org/cgit'
|
| |
+ COPR_DIST_GIT_LOGS_URL = 'http://localhost:5001/per-task-logs'
|
| |
+
|
| |
+ # primary
|
| |
+ LOG_FILENAME = "/var/log/copr-frontend/frontend.log"
|
| |
+ LOG_DIR = "/var/log/copr-frontend/"
|
| |
+
|
| |
+ # Internal network, used to accept statistics without auth
|
| |
+ # list of IP or subnet
|
| |
+ INTRANET_IPS = ["127.0.0.1", "192.168.1.0/24"]
|
| |
+
|
| |
+ # Builder VMs network, used to avoid requests from builders in popularity statistics
|
| |
+ # list of IP or subnet, optional
|
| |
+ BUILDER_IPS = ["127.0.0.1"]
|
| |
+
|
| |
+ # a place for storing srpms until they get uploaded
|
| |
+ STORAGE_DIR = "/var/lib/copr/data/srpm_storage"
|
| |
+
|
| |
+ # no need to filter cla_* groups, they are already filtered by fedora openid
|
| |
+ GROUP_DENYLIST = ['fedorabugs', 'packager', 'provenpackager']
|
| |
+
|
| |
+ REDIS_HOST = "redis.fedora-copr.svc.cluster.local"
|
| |
+ REDIS_PORT = 6379
|
| |
+
|
| |
+ # Hide page parts not relevant to this Copr instance:
|
| |
+ # LAYOUT_OVERVIEW_HIDE_QUICK_ENABLE = False
|
| |
+
|
| |
+ # FAS_LOGIN = True
|
| |
+ # LOGIN_INFO = {
|
| |
+ # # Link to user's profile, {username} expaneded.
|
| |
+ # 'user_link': 'https://accounts.fedoraproject.org/user/{username}/',
|
| |
+ # # Description sometimes put into template to make clear what we point to
|
| |
+ # 'user_desc': 'FAS account'
|
| |
+ # }
|
| |
+
|
| |
+
|
| |
+ NEWS_URL = "https://fedora-copr.github.io/"
|
| |
+ NEWS_FEED_URL = "https://fedora-copr.github.io/feed.xml"
|
| |
+
|
| |
+ OPENID_PROVIDER_URL = "https://id.fedoraproject.org"
|
| |
+
|
| |
+ # When the data in EOL chroots should be deleted (in days)
|
| |
+ DELETE_EOL_CHROOTS_AFTER = 180
|
| |
+
|
| |
+ # This option has several meanings:
|
| |
+ # - How often we warn about the EOL chroots be e-mail; Ie. we send the first
|
| |
+ # email on the day when we mark some of the mock_chroots EOL, and the next
|
| |
+ # emails are sent with EOL_CHROOTS_NOTIFICATION_PERIOD.
|
| |
+ # - We start showing a flash message in web-UI warning about EOL chroot removal
|
| |
+ # if some of the chroots is to be removed in the next
|
| |
+ # EOL_CHROOTS_NOTIFICATION_PERIOD days.
|
| |
+ # - the /repositories pages highlight the chroots to be removed in the next
|
| |
+ # EOL_CHROOTS_NOTIFICATION_PERIOD days
|
| |
+ EOL_CHROOTS_NOTIFICATION_PERIOD = 80
|
| |
+
|
| |
+ # enable Discourse integration
|
| |
+ ENABLE_DISCUSSION = False
|
| |
+ # DISCOURSE_URL = "https://discussion.fedoraproject.org/"
|
| |
+
|
| |
+ # PAGINATION
|
| |
+ ITEMS_PER_PAGE = 10
|
| |
+ PAGES_URLS_COUNT = 5
|
| |
+
|
| |
+ # Builds defaults
|
| |
+ # # memory in MB
|
| |
+ DEFAULT_BUILD_MEMORY = 2048
|
| |
+ MIN_BUILD_MEMORY = 2048
|
| |
+ MAX_BUILD_MEMORY = 4096
|
| |
+ # in seconds
|
| |
+ DEFAULT_BUILD_TIMEOUT = 3600 * 5
|
| |
+ MIN_BUILD_TIMEOUT = 0
|
| |
+ MAX_BUILD_TIMEOUT = 108000
|
| |
+
|
| |
+ # Disable template caching
|
| |
+ CACHE_TYPE = "NullCache"
|
| |
Is this supposed to be published?