todo.sr.ht/config.example.ini

128 lines
3.8 KiB
INI
Raw Permalink Normal View History

2018-09-03 00:07:34 +02:00
[sr.ht]
#
# The name of your network of sr.ht-based sites
2019-02-06 23:02:00 +01:00
site-name=sourcehut
#
# The top-level info page for your site
site-info=https://sourcehut.org
#
# {{ site-name }}, {{ site-blurb }}
site-blurb=the hacker's forge
2018-09-03 00:07:34 +02:00
#
2019-06-10 19:23:24 +02:00
# If this != production, we add a banner to each page
environment=development
#
2018-09-03 00:07:34 +02:00
# Contact information for the site owners
owner-name=Drew DeVault
owner-email=sir@cmpwn.com
#
# The source code for your fork of sr.ht
source-url=https://git.sr.ht/~sircmpwn/srht
#
2019-12-19 16:58:54 +01:00
# A key used for encrypting session cookies. Use `srht-keygen service` to
# generate the service key. This must be shared between each node of the same
# service (e.g. git1.sr.ht and git2.sr.ht), but different services may use
# different keys. If you configure all of your services with the same
# config.ini, you may use the same service-key for all of them.
2019-11-30 16:17:42 +01:00
service-key=
#
# A secret key to encrypt internal messages with. Use `srht-keygen network` to
2019-12-19 16:58:54 +01:00
# generate this key. It must be consistent between all services and nodes.
2019-11-30 16:17:42 +01:00
network-key=
2019-12-11 17:13:20 +01:00
#
2019-12-19 16:58:54 +01:00
# The redis host URL. This is used for caching and temporary storage, and must
# be shared between nodes (e.g. git1.sr.ht and git2.sr.ht), but need not be
# shared between services. It may be shared between services, however, with no
# ill effect, if this better suits your infrastructure.
2019-12-11 17:13:20 +01:00
redis-host=
2018-09-03 00:07:34 +02:00
[mail]
#
# Outgoing SMTP settings
smtp-host=
smtp-port=
2021-11-29 19:18:40 +01:00
smtp-from=
#
# Default: starttls
# Options: starttls, tls, insecure
smtp-encryption=starttls
#
# Default: plain
# Options: plain, none
smtp-auth=plain
# user / password are required if smtp-auth is plain
2018-09-03 00:07:34 +02:00
smtp-user=
smtp-password=
#
# Application exceptions are emailed to this address
error-to=
error-from=
#
2019-12-19 16:58:54 +01:00
# You should generate a PGP key to allow users to authenticate emails received
# from your services. Use `gpg --edit-key [key id]` to remove the password from
# your private key, then export it to a file and set pgp-privkey to the path to
# that file. pgp-pubkey should be set to the path to your public key, and
# pgp-key-id should be set to the key ID string. Outgoing emails are signed with
# this PGP key.
2018-09-03 00:07:34 +02:00
pgp-privkey=
pgp-pubkey=
pgp-key-id=
2019-04-07 21:05:31 +02:00
[webhooks]
#
# base64-encoded Ed25519 key for signing webhook payloads. This should be
2019-12-19 16:58:54 +01:00
# consistent between all services.
2019-04-07 21:05:31 +02:00
#
2019-12-19 16:58:54 +01:00
# Use the `srht-keygen webhook` command to generate this key. Put the private
# key here and distribute the public key to anyone who would want to verify
# webhook payloads from your service.
2019-04-07 21:05:31 +02:00
private-key=
2018-09-03 00:07:34 +02:00
[todo.sr.ht]
2019-05-29 11:07:51 +02:00
#
2018-09-03 00:07:34 +02:00
# URL todo.sr.ht is being served at (protocol://domain)
origin=http://todo.sr.ht.local
#
# Address and port to bind the debug server to
debug-host=0.0.0.0
debug-port=5003
#
# Configures the SQLAlchemy connection string for the database.
connection-string=postgresql://postgres@localhost/todo.sr.ht
#
2018-12-31 17:43:41 +01:00
# Set to "yes" to automatically run migrations on package upgrade.
migrate-on-upgrade=yes
#
2018-09-03 00:07:34 +02:00
# todo.sr.ht's OAuth client ID and secret for meta.sr.ht
# Register your client at meta.example.org/oauth
oauth-client-id=CHANGEME
oauth-client-secret=CHANGEME
2018-09-18 04:05:15 +02:00
#
# Outgoing email for notifications generated by users
notify-from=CHANGEME@example.org
2019-06-10 19:23:24 +02:00
#
# The redis connection used for the webhooks worker
webhooks=redis://localhost:6379/1
#
# Origin URL for the API
# Only needed if not run behind a reverse proxy, e.g. for local development.
# By default, the API port is 100 more than the web port
#api-origin=http://localhost:5103
2018-09-03 00:07:34 +02:00
2019-04-29 20:35:38 +02:00
[todo.sr.ht::mail]
#
# Path for the lmtp daemon's unix socket. Direct incoming mail to this socket.
# Alternatively, specify IP:PORT and an SMTP server will be run instead.
sock=/tmp/todo.sr.ht-lmtp.sock
#
# The lmtp daemon will make the unix socket group-read/write for users in this
# group.
sock-group=postfix
#
# Fill this in with the name of the domain to which emails should be sent.
# Leave blank to disable email submission.
posting-domain=
2019-05-29 11:07:51 +02:00
2018-09-03 00:07:34 +02:00
[meta.sr.ht]
origin=http://meta.sr.ht.local