~cytrogen/srht-deploy

ref: 6b7b1351f3bd75526788ceec9164562787bd89ae srht-deploy/config/config.ini.example -rw-r--r-- 5.0 KiB
6b7b1351 — Cytrogen 修复 README 里的 Markdown 格式错误 9 days ago
                                                                                
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
[sr.ht]
#
# The name of your network of sr.ht-based sites
site-name=Cytrogen
#
# The top-level info page for your site
site-info=https://cytrogen.icu
#
# {{ site-name }}, {{ site-blurb }}
site-blurb=Cytrogen's code forge
#
# If this != production, we add a banner to each page
environment=production
#
# Contact information for the site owners
owner-name=Cytrogen
owner-email=boo@cytrogen.icu
#
# The source code for your fork of sr.ht
source-url=https://git.sr.ht/~sircmpwn/srht
#
# Link to your instance's privacy policy.
privacy-policy=https://man.sr.ht/privacy.md
#
# A key used for encrypting session cookies.
# Generate with: srht-keygen service
service-key=CHANGEME
#
# A secret key to encrypt internal messages with.
# Generate with: srht-keygen network
network-key=CHANGEME
#
# The redis host URL.
redis-host=redis://redis:6379/1
#
# Optional email address for reporting security-related issues.
security-address=boo@cytrogen.icu
#
# The global domain of the site.
global-domain=cytrogen.icu

[objects]
#
# Configure S3-compatible object storage for services. Optional.
s3-upstream=
s3-access-key=
s3-secret-key=

[mail]
#
# Outgoing SMTP settings
smtp-host=mail.cytrogen.icu
smtp-port=587
smtp-from=srht@cytrogen.icu
#
# Options: starttls, tls, insecure
smtp-encryption=starttls
#
# Options: plain, none
smtp-auth=plain
smtp-user=sourcehut
smtp-password=CHANGEME
#
# Application exceptions are emailed to this address
error-to=boo@cytrogen.icu
error-from=srht@cytrogen.icu
#
# PGP key for signing outgoing emails
pgp-privkey=/etc/sr.ht/email.priv
pgp-pubkey=/etc/sr.ht/email.pub
pgp-key-id=

[webhooks]
#
# base64-encoded Ed25519 key for signing webhook payloads.
# Generate with: srht-keygen webhook
private-key=CHANGEME

[meta.sr.ht]
#
# URL meta.sr.ht is being served at (protocol://domain)
origin=https://meta.cytrogen.icu
#
# Address and port to bind the debug server to
debug-host=0.0.0.0
debug-port=5000
#
# Database connection string
connection-string=postgresql://metasrht:metasrht@postgres/metasrht?sslmode=disable
#
# Set to "yes" to automatically run migrations on package upgrade.
migrate-on-upgrade=yes
#
# The redis connection used for the webhooks worker
webhooks=redis://redis:6379/1
#
# Send welcome emails after signup (requires cron)
welcome-emails=no
#
# Origin URL for the API
# 使用 Docker 服务名,供跨容器调用
api-origin=http://meta:5100

[meta.sr.ht::api]
max-complexity=200
max-duration=3s
# 需包含 Docker 内网,供其他容器调用 API
internal-ipnet=127.0.0.0/8,::1/128,192.168.0.0/16,10.0.0.0/8,172.0.0.0/8

[meta.sr.ht::settings]
#
# If "no", public registration will not be permitted.
registration=no
#
# Where to redirect new users upon registration
onboarding-redirect=https://meta.cytrogen.icu

[meta.sr.ht::aliases]

[meta.sr.ht::billing]
enabled=no
stripe-public-key=
stripe-secret-key=

[meta.sr.ht::auth]
# Options: builtin, unix-pam
#auth-method=builtin

[meta.sr.ht::auth::unix-pam]
email-default-domain=
#service=sshd
create-users=yes
user-group=
admin-group=wheel

[hub.sr.ht]
origin=https://hub.cytrogen.icu
debug-host=0.0.0.0
debug-port=5014
connection-string=postgresql://hubsrht:hubsrht@postgres/hubsrht?sslmode=disable
migrate-on-upgrade=yes
oauth-client-id=
oauth-client-secret=
api-origin=http://hub:5114

[todo.sr.ht]
#
# URL todo.sr.ht is being served at (protocol://domain)
origin=https://todo.cytrogen.icu
#
# Address and port to bind the debug server to
debug-host=0.0.0.0
debug-port=5003
#
# Database connection string
connection-string=postgresql://todosrht:todosrht@postgres/todosrht?sslmode=disable
#
# Set to "yes" to automatically run migrations on package upgrade.
migrate-on-upgrade=yes
#
# The redis connection used for the webhooks worker
webhooks=redis://redis:6379/1
#
# todo.sr.ht's OAuth client ID and secret for meta.sr.ht
oauth-client-id=
oauth-client-secret=
#
# Origin URL for the API
api-origin=http://127.0.0.1:5103

[todo.sr.ht::mail]
posting-domain=todo.cytrogen.icu

[todo.sr.ht::api]
max-complexity=200
max-duration=3s
internal-ipnet=127.0.0.0/8,::1/128,192.168.0.0/16,10.0.0.0/8,172.0.0.0/8

[git.sr.ht]
#
# URL git.sr.ht is being served at (protocol://domain)
origin=https://git.cytrogen.icu
#
# Address and port to bind the debug server to
debug-host=0.0.0.0
debug-port=5001
#
# Database connection string
connection-string=postgresql://gitsrht:gitsrht@postgres/gitsrht?sslmode=disable
#
# Set to "yes" to automatically run migrations on package upgrade.
migrate-on-upgrade=yes
#
# The redis connection used for the webhooks worker
webhooks=redis://redis:6379/1
#
# A post-update script which is installed in every git repo.
post-update-script=/usr/bin/gitsrht-update-hook
#
# git.sr.ht's OAuth client ID and secret for meta.sr.ht
oauth-client-id=
oauth-client-secret=
#
# Path to git repositories on disk
repos=/var/lib/git/
#
# S3 object storage (optional)
s3-bucket=
s3-prefix=
#
# Required for preparing and sending patchsets from git.sr.ht
outgoing-domain=

[git.sr.ht::api]
max-complexity=200
max-duration=3s
internal-ipnet=127.0.0.0/8,::1/128,192.168.0.0/16,10.0.0.0/8,172.0.0.0/8

[git.sr.ht::dispatch]
/usr/bin/gitsrht-keys=git:git