2016-02-14 10:10:21 +01:00
|
|
|
# Values formatted like "_env:ENV_VAR_NAME:default_value" can be overridden by
|
|
|
|
# the specified environment variable. See the Yesod wiki, Configuration page.
|
2016-02-13 04:35:30 +01:00
|
|
|
|
2018-02-25 10:25:24 +01:00
|
|
|
###############################################################################
|
|
|
|
# Static files
|
|
|
|
###############################################################################
|
|
|
|
|
2016-02-13 04:35:30 +01:00
|
|
|
static-dir: "_env:STATIC_DIR:static"
|
2016-02-14 10:10:21 +01:00
|
|
|
|
2018-02-25 10:25:24 +01:00
|
|
|
###############################################################################
|
|
|
|
# HTTP server
|
|
|
|
###############################################################################
|
|
|
|
|
2016-02-14 10:10:21 +01:00
|
|
|
# any IPv4 host
|
|
|
|
host: "_env:HOST:*4"
|
|
|
|
|
|
|
|
# The port `yesod devel` uses is distinct from this value. Set the
|
|
|
|
# `yesod devel` port from the command line.
|
2016-03-05 04:56:25 +01:00
|
|
|
http-port: "_env:PORT:3000"
|
2016-02-14 10:10:21 +01:00
|
|
|
|
2016-02-13 04:35:30 +01:00
|
|
|
ip-from-header: "_env:IP_FROM_HEADER:false"
|
|
|
|
|
2019-03-16 18:15:31 +01:00
|
|
|
# The instance's host (e.g. "dev.angeley.es"). Used for determining which
|
|
|
|
# requests are federated and which are for this instance, and for generating
|
|
|
|
# URLs. The database relies on this value, and you shouldn't change it once
|
|
|
|
# you deploy an instance.
|
2019-03-04 10:06:23 +01:00
|
|
|
instance-host: "_env:INSTANCE_HOST:localhost"
|
|
|
|
|
2018-07-01 10:15:23 +02:00
|
|
|
# Encryption key file for encrypting the session cookie sent to clients
|
|
|
|
client-session-key: config/client_session_key.aes
|
|
|
|
|
|
|
|
# How much time after the last request it takes for the session cookie to
|
|
|
|
# expire
|
|
|
|
client-session-timeout:
|
|
|
|
amount: 2
|
|
|
|
unit: hours
|
|
|
|
|
2019-01-14 23:08:44 +01:00
|
|
|
# Maximal accepted time difference between request date and current time, when
|
|
|
|
# performing this check during HTTP signature verification
|
|
|
|
request-time-limit:
|
|
|
|
amount: 5
|
2019-01-19 02:06:09 +01:00
|
|
|
unit: minutes
|
2019-01-14 23:08:44 +01:00
|
|
|
|
|
|
|
# How often to generate a new actor key for HTTP-signing requests
|
|
|
|
actor-key-rotation:
|
|
|
|
amount: 1
|
2019-02-08 00:28:39 +01:00
|
|
|
unit: days
|
2019-01-14 23:08:44 +01:00
|
|
|
|
2018-02-25 10:25:24 +01:00
|
|
|
###############################################################################
|
|
|
|
# Development
|
|
|
|
###############################################################################
|
|
|
|
|
2016-02-13 04:35:30 +01:00
|
|
|
# Optional values with the following production defaults.
|
|
|
|
# In development, they default to the inverse.
|
|
|
|
#
|
|
|
|
# development: false
|
|
|
|
# detailed-logging: false
|
|
|
|
# should-log-all: false
|
|
|
|
# reload-templates: false
|
|
|
|
# mutable-static: false
|
|
|
|
# skip-combining: false
|
|
|
|
|
2018-05-26 12:27:05 +02:00
|
|
|
# load-font-from-lib-data: false
|
|
|
|
|
2018-02-25 10:25:24 +01:00
|
|
|
###############################################################################
|
|
|
|
# SQL database
|
|
|
|
###############################################################################
|
|
|
|
|
2016-02-14 10:10:21 +01:00
|
|
|
# If you need a numeric value (e.g. 123) to parse as a String, wrap it in
|
|
|
|
# single quotes (e.g. "_env:PGPASS:'123'"). See the Yesod wiki, Configuration
|
|
|
|
# page.
|
2016-02-13 04:35:30 +01:00
|
|
|
|
|
|
|
database:
|
2016-02-16 12:41:13 +01:00
|
|
|
user: "_env:PGUSER:vervis_dev"
|
|
|
|
password: "_env:PGPASS:vervis_dev_password"
|
2016-02-13 04:35:30 +01:00
|
|
|
host: "_env:PGHOST:localhost"
|
|
|
|
port: "_env:PGPORT:5432"
|
2016-02-16 12:41:13 +01:00
|
|
|
database: "_env:PGDATABASE:vervis_dev"
|
2016-02-13 04:35:30 +01:00
|
|
|
poolsize: "_env:PGPOOLSIZE:10"
|
|
|
|
|
2019-02-24 02:35:07 +01:00
|
|
|
max-instance-keys: 2
|
|
|
|
max-actor-keys: 2
|
|
|
|
|
2018-02-25 10:25:24 +01:00
|
|
|
###############################################################################
|
|
|
|
# Version control repositories
|
|
|
|
###############################################################################
|
|
|
|
|
2018-05-21 22:32:34 +02:00
|
|
|
repo-dir: repos
|
|
|
|
diff-context-lines: 5
|
2018-02-25 10:25:24 +01:00
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# SSH server
|
|
|
|
###############################################################################
|
|
|
|
|
2016-03-05 04:56:25 +01:00
|
|
|
ssh-port: 5022
|
2016-03-07 01:37:07 +01:00
|
|
|
ssh-key-file: config/ssh-host-key
|
2018-02-25 10:25:24 +01:00
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# Accounts
|
|
|
|
###############################################################################
|
|
|
|
|
2016-04-19 18:03:27 +02:00
|
|
|
registration: false
|
2016-07-27 23:46:48 +02:00
|
|
|
max-accounts: 3
|
2018-02-25 10:25:24 +01:00
|
|
|
|
2019-03-04 15:51:51 +01:00
|
|
|
# Whether to verify users' email addresses by sending them email with a
|
|
|
|
# verification link. If not set below, the default is not to verify in
|
|
|
|
# development, and to verify otherwise.
|
|
|
|
#email-verification: true
|
|
|
|
|
2018-02-25 10:25:24 +01:00
|
|
|
###############################################################################
|
|
|
|
# Mail
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
# Optional SMTP server settings for sending email. If not provided, no email
|
|
|
|
# will be sent. The login field is optional, provide if you need SMTP
|
|
|
|
# authentication.
|
|
|
|
|
2018-03-03 22:33:59 +01:00
|
|
|
# mail:
|
|
|
|
# smtp:
|
|
|
|
# login:
|
|
|
|
# user: "_env:SMTPUSER:vervis_dev"
|
|
|
|
# password: "_env:SMTPPASS:vervis_dev_password"
|
|
|
|
# host: "_env:SMTPHOST:localhost"
|
|
|
|
# port: "_env:SMTPPORT:587"
|
|
|
|
# sender:
|
|
|
|
# name: "_env:SENDERNAME:vervis"
|
|
|
|
# email: "_env:SENDEREMAIL:vervis@vervis.vervis"
|
|
|
|
# allow-reply: false
|
2019-01-30 04:12:42 +01:00
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# Federation
|
|
|
|
###############################################################################
|
|
|
|
|
2019-03-25 01:17:24 +01:00
|
|
|
# Whether to support federation. This includes:
|
|
|
|
#
|
|
|
|
# * Accept activities from other servers in the inbox
|
|
|
|
# * Accept activities from users in the outbox
|
|
|
|
# * Deliver local activities to other servers
|
|
|
|
federation: false
|
|
|
|
|
2019-01-30 04:12:42 +01:00
|
|
|
# Signing key file for signing object capabilities sent to remote users
|
|
|
|
capability-signing-key: config/capability_signing_key
|
2019-02-08 22:54:22 +01:00
|
|
|
|
|
|
|
# Salt file for encoding and decoding hashids
|
|
|
|
hashids-salt-file: config/hashids_salt
|
2019-02-26 15:00:22 +01:00
|
|
|
|
|
|
|
# Whether to reject an HTTP signature when we want to insert a new key or usage
|
|
|
|
# record but reached the limit setting
|
|
|
|
reject-on-max-keys: true
|
2019-04-02 01:38:44 +02:00
|
|
|
|
|
|
|
# The duration of time during which a remote actor is unreachable and we
|
|
|
|
# periodically retry to deliver them activities. After that period of time, we
|
|
|
|
# stop trying to deliver and we remove them from follower lists of local
|
|
|
|
# actors.
|
|
|
|
drop-delivery-after:
|
|
|
|
amount: 25
|
|
|
|
unit: weeks
|