1
0
Fork 0
mirror of https://code.sup39.dev/repos/Wqawg synced 2024-12-31 07:24:52 +09:00
vervis/config/settings-default.yaml

143 lines
4.7 KiB
YAML
Raw Normal View History

# 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 12:35:30 +09:00
###############################################################################
# Static files
###############################################################################
2016-02-13 12:35:30 +09:00
static-dir: "_env:STATIC_DIR:static"
###############################################################################
# HTTP server
###############################################################################
# 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 12:56:25 +09:00
http-port: "_env:PORT:3000"
2016-02-13 12:35:30 +09:00
ip-from-header: "_env:IP_FROM_HEADER:false"
# Default behavior: determine the application root from the request headers.
# Uncomment to set an explicit approot
#approot: "_env:APPROOT:http://localhost:3000"
instance-host: "_env:INSTANCE_HOST:localhost"
# 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
# Maximal accepted time difference between request date and current time, when
# performing this check during HTTP signature verification
request-time-limit:
amount: 5
unit: minutes
# How often to generate a new actor key for HTTP-signing requests
actor-key-rotation:
amount: 1
unit: days
###############################################################################
# Development
###############################################################################
2016-02-13 12:35:30 +09: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
# load-font-from-lib-data: false
###############################################################################
# SQL database
###############################################################################
# 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 12:35:30 +09:00
database:
user: "_env:PGUSER:vervis_dev"
password: "_env:PGPASS:vervis_dev_password"
2016-02-13 12:35:30 +09:00
host: "_env:PGHOST:localhost"
port: "_env:PGPORT:5432"
database: "_env:PGDATABASE:vervis_dev"
2016-02-13 12:35:30 +09:00
poolsize: "_env:PGPOOLSIZE:10"
max-instance-keys: 2
max-actor-keys: 2
###############################################################################
# Version control repositories
###############################################################################
2018-05-22 05:32:34 +09:00
repo-dir: repos
diff-context-lines: 5
###############################################################################
# SSH server
###############################################################################
2016-03-05 12:56:25 +09:00
ssh-port: 5022
2016-03-07 09:37:07 +09:00
ssh-key-file: config/ssh-host-key
###############################################################################
# Accounts
###############################################################################
registration: false
2016-07-28 06:46:48 +09:00
max-accounts: 3
# 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
###############################################################################
# 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.
# 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
###############################################################################
# Federation
###############################################################################
# Signing key file for signing object capabilities sent to remote users
capability-signing-key: config/capability_signing_key
# Salt file for encoding and decoding hashids
hashids-salt-file: config/hashids_salt
# 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