Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle http headers when behind a well configured proxy #70

Closed
wants to merge 1 commit into from

Commits on Sep 20, 2019

  1. handle http headers when behind a well configured proxy

    Fixes Unidata/thredds#1310
    
    This should work with the following Nginx proxy config:
    
    ```
        location /thredds/ {
            proxy_pass http:https://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
        }
    ```
    tlvu committed Sep 20, 2019
    Configuration menu
    Copy the full SHA
    44e76f5 View commit details
    Browse the repository at this point in the history