From a981947374a1a42e76cd08324bbae429b011e061 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Mon, 2 Oct 2017 20:18:32 +1100 Subject: [PATCH] Tweak settings: only listen on 127.0.0.1, work properly behind a reverse proxy, and add a copyright notice --- config/settings.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/settings.yml b/config/settings.yml index 8621b89..226e363 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -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 Creative Commons Attribution-ShareAlike 4.0 International License.' #analytics: UA-YOURCODE