summaryrefslogtreecommitdiff
path: root/config/settings.yml
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-03-14 01:19:36 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2017-03-14 01:19:36 +0100
commit53fcf55c02f9335518c28d26429913258fc28f87 (patch)
treebc6aa880814da485343ae595c916de5ae52fcfa0 /config/settings.yml
parentd84b462a711ce95593ff05a7581e722562c3835a (diff)
downloadbar-53fcf55c02f9335518c28d26429913258fc28f87.tar
bar-53fcf55c02f9335518c28d26429913258fc28f87.tar.gz
bar-53fcf55c02f9335518c28d26429913258fc28f87.tar.bz2
bar-53fcf55c02f9335518c28d26429913258fc28f87.tar.xz
bar-53fcf55c02f9335518c28d26429913258fc28f87.zip
Extract appRoot from http headers
Diffstat (limited to 'config/settings.yml')
-rw-r--r--config/settings.yml11
1 files changed, 2 insertions, 9 deletions
diff --git a/config/settings.yml b/config/settings.yml
index fcae60c..83d3bfc 100644
--- a/config/settings.yml
+++ b/config/settings.yml
@@ -1,15 +1,8 @@
1# Values formatted like "_env:ENV_VAR_NAME:default_value" can be overridden by the specified environment variable.
2# See https://github.com/yesodweb/yesod/wiki/Configuration#overriding-configuration-values-with-environment-variables
3
4static-dir: "_env:STATIC_DIR:static" 1static-dir: "_env:STATIC_DIR:static"
5host: "_env:HOST:*4" # any IPv4 host 2host: "_env:HOST:*4" # any IPv4 host
6port: "_env:PORT:3000" # NB: The port `yesod devel` uses is distinct from this value. Set the `yesod devel` port from the command line. 3port: "_env:PORT:3000"
7ip-from-header: "_env:IP_FROM_HEADER:false" 4ip-from-header: "_env:IP_FROM_HEADER:false"
8 5
9# Default behavior: determine the application root from the request headers.
10# Uncomment to set an explicit approot
11approot: "_env:APPROOT:"
12
13# Optional values with the following production defaults. 6# Optional values with the following production defaults.
14# In development, they default to the inverse. 7# In development, they default to the inverse.
15# 8#
@@ -21,6 +14,6 @@ database:
21 user: "_env:PGUSER:bar" 14 user: "_env:PGUSER:bar"
22 password: "_env:PGPASS:" 15 password: "_env:PGPASS:"
23 host: "_env:PGHOST:" 16 host: "_env:PGHOST:"
24 port: "_env:PGPORT:" 17 port: "_env:PGPORT:5432"
25 database: "_env:PGDATABASE:bar" 18 database: "_env:PGDATABASE:bar"
26 poolsize: "_env:PGPOOLSIZE:10" 19 poolsize: "_env:PGPOOLSIZE:10"