Skip to content

Commit

Permalink
Merge pull request #1256 from usegalaxy-eu/path-based_interactive_tools
Browse files Browse the repository at this point in the history
Enable path-based interactive tools
  • Loading branch information
kysrpex authored Jul 11, 2024
2 parents fce2056 + a97941b commit 3fb1ef9
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions group_vars/sn06.yml
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ gie_proxy_nodejs_version: "10.13.0"
gie_proxy_virtualenv: "{{ galaxy_root }}/gie-proxy/venv"
gie_proxy_setup_service: systemd
gie_proxy_sessions_path: "{{ galaxy_mutable_data_dir }}/interactivetools_map.sqlite"
gie_proxy_path_prefix: /interactivetool/ep
gie_proxy_port: 8800
gie_proxy_verbose: true

Expand Down
1 change: 1 addition & 0 deletions group_vars/sn07.yml
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ gie_proxy_nodejs_version: "10.13.0"
gie_proxy_virtualenv: "{{ galaxy_root }}/gie-proxy/venv"
gie_proxy_setup_service: systemd
gie_proxy_sessions_path: "{{ galaxy_mutable_data_dir }}/interactivetools_map.sqlite"
gie_proxy_path_prefix: /interactivetool/ep
gie_proxy_port: 8800
gie_proxy_verbose: true

Expand Down
2 changes: 1 addition & 1 deletion requirements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ roles:
src: https://github.com/usegalaxy-eu/ansible-update-hosts
version: 0.2.0
- name: usegalaxy_eu.gie_proxy
version: 0.0.2
version: 0.1.0
- name: usegalaxy-eu.autofs
src: https://github.com/usegalaxy-eu/ansible-autofs
version: 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion templates/nginx/galaxy-ie-main.j2
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ server {
access_log /var/log/nginx/interactive.log;

location / {
proxy_pass http://127.0.0.1:8800;
proxy_pass http://127.0.0.1:{{ gie_proxy_port }};
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Host $host;
Expand Down
10 changes: 10 additions & 0 deletions templates/nginx/galaxy-main.j2
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,16 @@ server {
proxy_set_header Connection "upgrade";
}

# Route all path-based interactive tool requests to the InteractiveTool proxy application
location ~* ^/(interactivetool/.+)$ {
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://127.0.0.1:{{ gie_proxy_port }};
}

location /.well-known/ {
proxy_set_header Host $host:$server_port;
Expand Down

0 comments on commit 3fb1ef9

Please sign in to comment.