NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
I filled a bug for Thredds because http headers from Nginx are being ignored: https://github.com/Unidata/thredds/issues/1310 There is a work-around for keeping the original httpS proto in there for those interested. I still do not have a work-around for the wrong client IP being logged because X-Forwarded-For http header is being ignored by Thredds. Long -------- Original Message -------- From: Thomas Cook <tmcook@xxxxxxxx> Subject: [thredds] Thredds behind Nginx reverse proxy server Date: Tuesday, September 17, 2019, 17:38 To: Sean Arms <sarms@xxxxxxxx> Cc: Vu , Long <vu.long@xxxxxxxxxx>, support-thredds@xxxxxxxxxxxxxxxx <support-thredds@xxxxxxxxxxxxxxxx>, thredds@xxxxxxxxxxxxxxxx <thredds@xxxxxxxxxxxxxxxx> I'm trying this again, since the unidata email address bounced back. On Tue, Sep 17, 2019 at 10:42 AM Thomas Cook <tmcook@xxxxxxxx <mailto:tmcook@xxxxxxxx>> wrote: I'm running thredds with nginx using docker. Check out Rich Signell's Thredds/Docker repo here: https://github.com/rsignell-usgs/docker-nginx-thredds-pycsw Copying his setups has helped me (and probably many others) look like a smart programmer. Even if you are not using docker, his nginx config files should work for you. Tom On Mon, Sep 16, 2019 at 5:18 PM Sean Arms <sarms@xxxxxxxx <mailto:sarms@xxxxxxxx>> wrote: Greetings! We don't run nginx here at Unidata, so I'm not certain about the details, but perhaps this will be of help? https://github.com/USGS-CMG/usgs-cmg-portal/issues/223 Not sure if the above needs augmented with the following to work with the godiva2 client shipped with ncWMS: https://github.com/Unidata/thredds/issues/982 If you do get something working and would like to contribute some documentation, I'm sure it'd be greatly appreciated by many! Cheers, Sean On Mon, Sep 16, 2019 at 6:09 PM Vu , Long <vu.long@xxxxxxxxxx <mailto:vu.long@xxxxxxxxxx>> wrote: Hi, I've found the page about Running The TDS Behind a Proxy Server (https://www.unidata.ucar.edu/software/tds/current/reference/TomcatBehindProxyServer.html). It shows configurations for when Thredds is behind Apache reverse proxy server. There are no configurations for when Thredds is behind Nginx reverse proxy server. I've tried location /thredds/ { proxy_pass http://internal_host/thredds/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } What else I have to set in my Nginx config? Thanks, Long _______________________________________________ NOTE: All exchanges posted to Unidata maintained email lists are recorded in the Unidata inquiry tracking system and made publicly available through the web. Users who post to any of the lists we maintain are reminded to remove any personal information that they do not want to be made public. thredds mailing list thredds@xxxxxxxxxxxxxxxx <mailto:thredds@xxxxxxxxxxxxxxxx> For list information or to unsubscribe, visit: https://www.unidata.ucar.edu/mailing_lists/ _______________________________________________ NOTE: All exchanges posted to Unidata maintained email lists are recorded in the Unidata inquiry tracking system and made publicly available through the web. Users who post to any of the lists we maintain are reminded to remove any personal information that they do not want to be made public. thredds mailing list thredds@xxxxxxxxxxxxxxxx <mailto:thredds@xxxxxxxxxxxxxxxx> For list information or to unsubscribe, visit: https://www.unidata.ucar.edu/mailing_lists/
thredds
archives: