Tweak settings: only listen on 127.0.0.1, work properly behind a reverse proxy, and add a copyright notice

This commit is contained in:
Danielle McLean 2017-10-02 20:18:32 +11:00
parent ade7552587
commit a981947374
Signed by: 00dani
GPG key ID: 3844A6973C6058F1

View file

@ -2,9 +2,9 @@
# See https://github.com/yesodweb/yesod/wiki/Configuration#overriding-configuration-values-with-environment-variables
static-dir: "_env:STATIC_DIR:static"
host: "_env:HOST:*4" # any IPv4 host
host: "_env:HOST:127.0.0.1"
port: "_env:PORT:3000" # NB: The port `yesod devel` uses is distinct from this value. Set the `yesod devel` port from the command line.
ip-from-header: "_env:IP_FROM_HEADER:false"
ip-from-header: "_env:IP_FROM_HEADER:true"
# Default behavior: determine the application root from the request headers.
# Uncomment to set an explicit approot
@ -32,5 +32,5 @@ database:
database: "_env:MYSQL_DATABASE:lebd"
poolsize: "_env:MYSQL_POOLSIZE:10"
copyright: Insert copyright statement here
copyright: 'All content on this site is licensed under a <a rel="license" href="//creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.'
#analytics: UA-YOURCODE