Blame public/fs/etc/pagure/pagure.cfg.in

root@culturestrings 2bcefd
### python
root@culturestrings 11a554
import os
root@culturestrings 11a554
from   datetime              import timedelta
root@culturestrings 11a554
from   pagure.default_config import ACLS
root@culturestrings 11a554
root@culturestrings 11a554
root@culturestrings 11a554
### site meta
root@culturestrings 026bf1
INSTANCE_NAME               = '@sitename@'
root@culturestrings 026bf1
ADMIN_EMAIL                 = 'pagure@@sitezone@'
root@culturestrings 026bf1
THEME                       = '@sitename@'
root@culturestrings 11a554
root@culturestrings 11a554
root@culturestrings 11a554
### pagure authentication
root@culturestrings 11a554
GIT_AUTH_BACKEND            = "pagure"
root@culturestrings 11a554
HTTP_REPO_ACCESS_GITOLITE   = None
root@culturestrings 11a554
root@culturestrings 11a554
root@culturestrings 11a554
### site options
root@culturestrings 11a554
DISABLE_REMOTE_PR           = False
root@culturestrings 11a554
ENABLE_NEW_PROJECTS         = True
root@culturestrings 11a554
ENABLE_UI_NEW_PROJECTS      = False
root@culturestrings 11a554
ENABLE_GROUP_MNGT           = False
root@culturestrings 11a554
ENABLE_TICKETS              = True
root@culturestrings 11a554
ENABLE_DOCS                 = True
root@culturestrings adb2f7
ENABLE_DEL_PROJECTS         = False
root@culturestrings adb2f7
ENABLE_DEL_FORKS            = True
root@culturestrings 11a554
root@culturestrings 11a554
# project options
root@culturestrings 11a554
PRIVATE_PROJECTS            = True
root@culturestrings 11a554
root@culturestrings 11a554
root@culturestrings 11a554
### flask
root@culturestrings 11a554
SECRET_KEY                  = '@pagure_flask_key@'
root@culturestrings 11a554
root@culturestrings 11a554
root@culturestrings 11a554
### pgsql
root@culturestrings 11a554
DB_URL                      = 'postgres://pagure:@pagure_pgsql_key@@localhost/pagure'
root@culturestrings 11a554
root@culturestrings 11a554
### site administration
root@culturestrings 11a554
FEDMSG_NOTIFICATIONS        = False
root@culturestrings 11a554
PAGURE_AUTH                 = 'local'
root@culturestrings 026bf1
PAGURE_ADMIN_USERS          = ['@devadmin@']
root@culturestrings 4355dd
ADMIN_GROUP                 = []
root@culturestrings 11a554
ADMIN_SESSION_LIFETIME      = timedelta(minutes=120)
root@culturestrings 11a554
root@culturestrings 11a554
root@culturestrings 11a554
USER_ACLS = [
root@culturestrings 11a554
    key
root@culturestrings 11a554
    for key in ACLS.keys()
root@culturestrings 11a554
        if key not in [
root@culturestrings 11a554
		'generate_acls_project',
root@culturestrings 11a554
		'internal_access',
root@culturestrings 11a554
		'create_project'
root@culturestrings 11a554
	]
root@culturestrings 11a554
]
root@culturestrings 11a554
root@culturestrings 11a554
root@culturestrings 11a554
ADMIN_API_ACLS = [
root@culturestrings 11a554
    'internal_access',
root@culturestrings 11a554
    'issue_comment',
root@culturestrings 11a554
    'issue_create',
root@culturestrings 11a554
    'issue_change_status',
root@culturestrings 11a554
    'pull_request_flag',
root@culturestrings 11a554
    'pull_request_comment',
root@culturestrings 11a554
    'pull_request_merge',
root@culturestrings 11a554
    'generate_acls_project',
root@culturestrings 11a554
    'commit_flag',
root@culturestrings 11a554
    'create_branch',
root@culturestrings 11a554
    'create_project',
root@culturestrings 11a554
    'tag_project',
root@culturestrings 11a554
]
root@culturestrings 11a554
root@culturestrings 11a554
root@culturestrings 11a554
### email options
root@culturestrings 11a554
EMAIL_ERROR                 = 'root@localhost'
root@culturestrings 11a554
EMAIL_SEND                  = True
root@culturestrings 11a554
VIRUS_SCAN_ATTACHMENTS      = False
root@culturestrings 11a554
root@culturestrings 11a554
root@culturestrings 11a554
### SMTP settings
root@culturestrings 026bf1
SMTP_SERVER                 = 'mail.@smtphost@'
root@culturestrings 11a554
SMTP_PORT                   = 25
root@culturestrings 31ed22
SMTP_STARTTLS               = True
root@culturestrings 11a554
SMTP_SSL                    = False
root@culturestrings 11a554
SMTP_USERNAME               = None
root@culturestrings 11a554
SMTP_PASSWORD               = None
root@culturestrings 11a554
root@culturestrings 026bf1
FROM_EMAIL                  = 'pagure@@sitezone@'
root@culturestrings 11a554
SALT_EMAIL                  = '@pagure_email_key@'
root@culturestrings 026bf1
DOMAIN_EMAIL_NOTIFICATIONS  = '@sitezone@'
root@culturestrings 11a554
root@culturestrings 11a554
root@culturestrings 11a554
### web frontend
root@culturestrings 026bf1
APP_URL                     = 'https://dev.@sitezone@'
root@culturestrings 026bf1
DOC_APP_URL                 = 'https://docs.@docszone@'
root@culturestrings 11a554
root@culturestrings 11a554
SHORT_LENGTH                = 6
root@culturestrings 11a554
ITEM_PER_PAGE               = 50
root@culturestrings 11a554
MAX_CONTENT_LENGTH          = 4 * 1024 * 1024
root@culturestrings 11a554
root@culturestrings 11a554
root@culturestrings 11a554
### web backend
root@culturestrings 11a554
APPLICATION_ROOT            = '/'
root@culturestrings 026bf1
SESSION_COOKIE_NAME         = 'pagure_at_@sitemask@'
root@culturestrings 11a554
SESSION_COOKIE_SECURE       = True
root@culturestrings 11a554
CHECK_SESSION_IP            = False
root@culturestrings 11a554
OLD_VIEW_COMMIT_ENABLED     = False
root@culturestrings 11a554
root@culturestrings 11a554
root@culturestrings 11a554
### git frontend
root@culturestrings 026bf1
GIT_URL_SSH                 = 'ssh://git@@sitezone@:@ssh_port@/'
root@culturestrings 026bf1
GIT_URL_GIT                 = 'https://dev.@sitezone@/'
root@culturestrings 11a554
root@culturestrings 11a554
root@culturestrings 11a554
### gunicorn
root@culturestrings 2caf08
IP_ALLOWED_INTERNAL         = ['@vpn_ipv4@', '127.0.0.1', 'localhost', '::1', '']
root@culturestrings 11a554
root@culturestrings 11a554
root@culturestrings 11a554
### event source options
root@culturestrings 11a554
EVENTSOURCE_SOURCE          = None
root@culturestrings 11a554
EVENTSOURCE_PORT            = 8080
root@culturestrings 11a554
WEBHOOK                     = False
root@culturestrings 11a554
root@culturestrings 11a554
root@culturestrings 11a554
### redis configuration
root@culturestrings 11a554
REDIS_HOST                  = '127.0.0.1'
root@culturestrings 11a554
REDIS_PORT                  = 6379
root@culturestrings 11a554
REDIS_DB                    = 0
root@culturestrings 11a554
root@culturestrings 11a554
root@culturestrings 31ed22
### mirroring
root@culturestrings 31ed22
MIRROR_SSHKEYS_FOLDER       = '/srv/pagure/ssh_keys'
root@culturestrings 31ed22
root@culturestrings 31ed22
root@culturestrings 11a554
### git backend
root@culturestrings 11a554
GIT_FOLDER = os.path.join(
root@culturestrings 11a554
    '/srv',
root@culturestrings 11a554
    'pagure',
root@culturestrings 11a554
    'repositories'
root@culturestrings 11a554
)
root@culturestrings 11a554
root@culturestrings 11a554
REMOTE_GIT_FOLDER = os.path.join(
root@culturestrings 11a554
    '/srv',
root@culturestrings 11a554
    'pagure',
root@culturestrings 11a554
    'remotes'
root@culturestrings 11a554
)
root@culturestrings 11a554
root@culturestrings 11a554
root@culturestrings 11a554
### ssh
root@culturestrings 11a554
SSH_KEYS_USERNAME_EXPECT    = "git"
root@culturestrings 11a554
root@culturestrings 11a554
SSH_COMMAND_NON_REPOSPANNER = ([
root@culturestrings 11a554
    "/usr/bin/%(cmd)s",
root@culturestrings 11a554
    "/srv/pagure/repositories/%(reponame)s",
root@culturestrings 11a554
], {"GL_USER": "%(username)s"})
root@culturestrings 11a554
root@culturestrings 11a554
root@culturestrings 11a554
SSH_KEYS_OPTIONS = (
root@culturestrings 11a554
    'restrict,command="/usr/lib/pagure/aclchecker.py %(username)s"'
root@culturestrings 11a554
)
root@culturestrings 11a554
root@culturestrings 0a05a5