1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
|
### python
import os
from datetime import timedelta
from pagure.default_config import ACLS
### site meta
INSTANCE_NAME = '@sitename@'
ADMIN_EMAIL = 'pagure@@sitezone@'
THEME = '@sitename@'
### pagure authentication
GIT_AUTH_BACKEND = "pagure"
HTTP_REPO_ACCESS_GITOLITE = None
### site options
DISABLE_REMOTE_PR = False
ENABLE_NEW_PROJECTS = True
ENABLE_UI_NEW_PROJECTS = False
ENABLE_GROUP_MNGT = False
ENABLE_TICKETS = True
ENABLE_DOCS = True
ENABLE_DEL_PROJECTS = False
ENABLE_DEL_FORKS = True
# project options
PRIVATE_PROJECTS = True
### flask
SECRET_KEY = '@pagure_flask_key@'
### pgsql
DB_URL = 'postgres://pagure:@pagure_pgsql_key@@localhost/pagure'
### site administration
FEDMSG_NOTIFICATIONS = False
PAGURE_AUTH = 'local'
PAGURE_ADMIN_USERS = ['@devadmin@']
ADMIN_GROUP = []
ADMIN_SESSION_LIFETIME = timedelta(minutes=120)
USER_ACLS = [
key
for key in ACLS.keys()
if key not in [
'generate_acls_project',
'internal_access',
'create_project'
]
]
ADMIN_API_ACLS = [
'internal_access',
'issue_comment',
'issue_create',
'issue_change_status',
'pull_request_flag',
'pull_request_comment',
'pull_request_merge',
'generate_acls_project',
'commit_flag',
'create_branch',
'create_project',
'tag_project',
]
### email options
EMAIL_ERROR = 'root@localhost'
EMAIL_SEND = True
VIRUS_SCAN_ATTACHMENTS = False
### SMTP settings
SMTP_SERVER = 'mail.@smtphost@'
SMTP_PORT = 25
SMTP_STARTTLS = True
SMTP_SSL = False
SMTP_USERNAME = None
SMTP_PASSWORD = None
FROM_EMAIL = 'pagure@@sitezone@'
SALT_EMAIL = '@pagure_email_key@'
DOMAIN_EMAIL_NOTIFICATIONS = '@sitezone@'
### web frontend
APP_URL = 'https://dev.@sitezone@'
DOC_APP_URL = 'https://docs.@docszone@'
SHORT_LENGTH = 6
ITEM_PER_PAGE = 50
MAX_CONTENT_LENGTH = 4 * 1024 * 1024
### web backend
APPLICATION_ROOT = '/'
SESSION_COOKIE_NAME = 'pagure_at_@sitemask@'
SESSION_COOKIE_SECURE = True
CHECK_SESSION_IP = False
OLD_VIEW_COMMIT_ENABLED = False
### git frontend
GIT_URL_SSH = 'ssh://git@@sitezone@:@ssh_port@/'
GIT_URL_GIT = 'https://dev.@sitezone@/'
### gunicorn
IP_ALLOWED_INTERNAL = ['@vpn_ipv4@', '127.0.0.1', 'localhost', '::1', '']
### event source options
EVENTSOURCE_SOURCE = None
EVENTSOURCE_PORT = 8080
WEBHOOK = False
### redis configuration
REDIS_HOST = '127.0.0.1'
REDIS_PORT = 6379
REDIS_DB = 0
### mirroring
MIRROR_SSHKEYS_FOLDER = '/srv/pagure/ssh_keys'
### git backend
GIT_FOLDER = os.path.join(
'/srv',
'pagure',
'repositories'
)
REMOTE_GIT_FOLDER = os.path.join(
'/srv',
'pagure',
'remotes'
)
### ssh
SSH_KEYS_USERNAME_EXPECT = "git"
SSH_COMMAND_NON_REPOSPANNER = ([
"/usr/bin/%(cmd)s",
"/srv/pagure/repositories/%(reponame)s",
], {"GL_USER": "%(username)s"})
SSH_KEYS_OPTIONS = (
'restrict,command="/usr/lib/pagure/aclchecker.py %(username)s"'
)
|