mirror of
https://github.com/aphrody-labs/msys2-autobuild-controller.git
synced 2026-10-14 04:19:07 +00:00
27 lines
1.0 KiB
Python
27 lines
1.0 KiB
Python
# vim: set ft=python :
|
|
|
|
from flask_app.permissions import *
|
|
|
|
# Flask config
|
|
SECRET_KEY = '' # see https://flask.palletsprojects.com/en/2.2.x/config/#SECRET_KEY
|
|
DEBUG = True # https://flask.palletsprojects.com/en/2.2.x/config/#DEBUG
|
|
SESSION_COOKIE_SECURE = False # https://flask.palletsprojects.com/en/2.2.x/config/#SESSION_COOKIE_SECURE
|
|
|
|
# For storing the GH access token encrypted in the session cookie
|
|
FERNET_SECRET_KEY = '' # generate with cryptography.fernet.Fernet.generate_key()
|
|
|
|
# Set these values to match your GitHub app settings.
|
|
GITHUB_APP_ID = 123456
|
|
GITHUB_APP_KEY_FILE = '' # will be loaded via open_instance_resource, contents stored in GITHUB_APP_KEY
|
|
GITHUB_CLIENT_ID = ''
|
|
GITHUB_CLIENT_SECRET = ''
|
|
GITHUB_WEBHOOK_SECRET = ''
|
|
|
|
ACL = AccessControlList({
|
|
Principal('User', 'admin'): AccessRights.ALL_ACCESS,
|
|
Principal('User', 'lurker'): AccessRights.NO_ACCESS,
|
|
Principal('User', 'collaborator'): AccessRights.TRIGGER_RUN|AccessRights.BREAK_CYCLES
|
|
})
|
|
|
|
AUTOBUILD_FORKS = frozenset(('msys2', 'msys2-arm'))
|