[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