Skip to content

Commit

Permalink
Add extra headers for web-02->web-01 proxy for launching Jupyter (thi…
Browse files Browse the repository at this point in the history
…s is

necessary for the returned page to have the correct host in the IE links).
  • Loading branch information
natefoo committed May 17, 2016
1 parent 65cd45a commit 4bd6000
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/nginx/usegalaxy.j2
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ server {
# session database will be created on web-02 (the proxy runs on web-01)
location /plugins/interactive_environments/jupyter/show {
proxy_pass https://galaxy-web-01.galaxyproject.org;
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;
proxy_redirect off;
}
{% endif %}
Expand Down

0 comments on commit 4bd6000

Please sign in to comment.