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 11a554
INSTANCE_NAME               = 'midipix'
root@culturestrings 11a554
ADMIN_EMAIL                 = 'pagure@midipix.org'
root@culturestrings 11a554
THEME                       = 'midipix'
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 11a554
PAGURE_ADMIN_USERS          = ['midipix']
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 11a554
SMTP_SERVER                 = 'localhost'
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 11a554
FROM_EMAIL                  = 'pagure@midipix.org'
root@culturestrings 11a554
SALT_EMAIL                  = '@pagure_email_key@'
root@culturestrings 11a554
DOMAIN_EMAIL_NOTIFICATIONS  = 'midipix.org'
root@culturestrings 11a554
root@culturestrings 11a554
root@culturestrings 11a554
### web frontend
root@culturestrings 11a554
APP_URL                     = 'https://pagure.midipix.org'
root@culturestrings 11a554
DOC_APP_URL                 = 'https://docs.foss21.org'
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 11a554
SESSION_COOKIE_NAME         = 'pagure_at_midipix_dot_org'
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 11a554
GIT_URL_SSH                 = 'ssh://git@midipix.org:@ssh_port@/'
root@culturestrings 11a554
GIT_URL_GIT                 = 'https://pagure.midipix.org/'
root@culturestrings 11a554
root@culturestrings 11a554
root@culturestrings 11a554
### gunicorn
root@culturestrings 11a554
IP_ALLOWED_INTERNAL         = ['10.8.0.1', '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 11a554
root@culturestrings 11a554
SSH_KEYS = {
root@culturestrings 11a554
    'ED25519': {
root@culturestrings 11a554
        'pubkey':      ' pagure.midipix.org,95.216.227.143,2a01:4f9:2b:20f0::2 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILp9B8XCCKYUzueIICIJBmxHIOovaup9SKJdyQWAem8U',
root@culturestrings 11a554
        'SHA256':      ' SHA256:+KTUN+cN7AYorPHeST7SFmKyKuYzRXmIIyHlrIGdXiA',
root@culturestrings 11a554
    },
root@culturestrings 11a554
root@culturestrings 11a554
    'RSA': {
root@culturestrings 11a554
        'pubkey':      ' pagure.midipix.org,95.216.227.143,2a01:4f9:2b:20f0::2 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAEAQDTtBBrmK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SDnizZNfNGEINpL1TCAkqfZArajJW1IJXW1v+v2ApbsspKOR4t87+EHvz87TceKLfQAiwPHYYb1pjqk022Q/EWLfyiXqK+hYCCaAMoqnjouB77+r6QEkGss6/XoQPCxhzAUixRSGExvvWZm/FJUUq5jdmN3NmT/t88d9Qd6K6KW9ACPaBKAKraTqVWPrPCDV3/iW/3HPYT8hPdMsLYeXoGKXoXOu38LV24wR+Av9+3zPXl89DHhbt72P6KSTYErqr6VZW/qCZh7pjiFsoIZjZct',
root@culturestrings 11a554
        'SHA256':      'SHA256:CtOLkhSF+Bj3gLt0ihzV+Q/R9KfPsVsC6MkyLMOZov8',
root@culturestrings 11a554
    }
root@culturestrings 11a554
}