From 44e76f56061a07ea083b2fd87f82ed406a878864 Mon Sep 17 00:00:00 2001 From: Long Vu Date: Fri, 20 Sep 2019 14:28:08 -0400 Subject: [PATCH] handle http headers when behind a well configured proxy Fixes https://github.com/Unidata/thredds/issues/1310 This should work with the following Nginx proxy config: ``` location /thredds/ { proxy_pass http://thredds:8080/thredds/; proxy_set_header Host $host; # pass the original public hostname to Thredds proxy_set_header X-Forwarded-Proto $scheme; # pass the original httpS proto to Thredds proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # pass the original client IP to Thredds } ``` --- server.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/server.xml b/server.xml index 88e6c3f..be7ce6b 100644 --- a/server.xml +++ b/server.xml @@ -128,6 +128,19 @@ --> + +