From 026ec403df62c4ffb5e0c14e00dd9b53f8eee98f Mon Sep 17 00:00:00 2001 From: unimariJo Citorijawa Date: Sun, 23 Dec 2018 00:10:02 +0400 Subject: [PATCH] Add some nginx headers Thanks @robsalasco! I added this headers because saw your fork and thought that it will be pretty good to have these headers by default. --- data/nginx/app.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/data/nginx/app.conf b/data/nginx/app.conf index cd90438..f51fcd4 100644 --- a/data/nginx/app.conf +++ b/data/nginx/app.conf @@ -21,6 +21,9 @@ server { ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; location / { - proxy_pass http://example.org; + proxy_pass http://example.org; + proxy_set_header Host $http_host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } }