Skip to content

Commit

Permalink
Merge pull request #9 from usegalaxy-eu/proxyPathPrefix
Browse files Browse the repository at this point in the history
Support configuring the `--proxyPathPrefix` command line argument
  • Loading branch information
kysrpex authored Jul 11, 2024
2 parents ca6b025 + 643b8aa commit 615a51f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ Including an example of how to use your role (for instance, with variables passe
gie_proxy_nodejs_version: "10.13.0"
gie_proxy_virtualenv: /srv/gie-proxy/venv
gie_proxy_setup_service: systemd
# configuring this path prefix enables path-based interactive tools
# (https://docs.galaxyproject.org/en/master/admin/special_topics/interactivetools.html#nginx-proxy-server-configuration-in-production)
gie_proxy_path_prefix: /interactivetool/ep
gie_proxy_port: 4002
gie_proxy_verbose: true
gie_proxy_sessions_path: "/srv/galaxy/var/data/interactivetools_map.sqlite"
Expand Down
3 changes: 2 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ gie_proxy_user: galaxy
gie_proxy_group: galaxy

gie_proxy_ip: 127.0.0.1
gie_proxy_path_prefix: null
gie_proxy_port: 8000
gie_proxy_verbose: null

gie_proxy_command_line: >-
{{ gie_proxy_nodejs_executable |default(gie_proxy_virtualenv ~ '/bin/node' if gie_proxy_virtualenv is defined else 'node') }}
{{ gie_proxy_dir }}/lib/main.js --ip {{ gie_proxy_ip }} --port {{ gie_proxy_port }} --sessions {{ gie_proxy_sessions_path }}
{{ '--verbose' if gie_proxy_verbose else '' }}
{{ '--verbose' if gie_proxy_verbose else '' }} {{ '--proxyPathPrefix ' + gie_proxy_path_prefix if gie_proxy_path_prefix != None else '' }}
# options: "package", "nodeenv"
gie_proxy_setup_nodejs: null
Expand Down

0 comments on commit 615a51f

Please sign in to comment.