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

Nginx optimizations. Resolves #2 #34

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions vars/galaxy_vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ galaxy_configuration:
galaxy_infrastructure_url: "{{ _galaxy_local_address }}"
outputs_to_working_directory: "{{ _galaxy_use_interactive_tools }}"
bootstrap_admin_api_key: "{{ _galaxy_bootstrap_api_key | default(omit) }}"
nginx_x_accel_redirect_base: '/_x_accel_redirect'
gravity:
galaxy_root: "{{ galaxy_server_dir }}"
galaxy_user: "{{ galaxy_user }}"
Expand Down
4 changes: 4 additions & 0 deletions vars/internal_vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ galaxy_src_documentation: https://github.com/UtrechtUniversity/vre-docs

_galaxy_default_dispatcher: default_dispatcher # function and file name for the dynamic job handler used by interactive tools

# tusd for receiving files

tusd_port: 1080

# Variables for the docker role

docker_install_compose: false
Expand Down
26 changes: 26 additions & 0 deletions vars/nginx_vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ galaxy_nginx_vhost_config:
auth: "{{ _molecule_active | ternary(omit, 'sram') }}"
proxy_set_header:
GX_SECRET: "{{ _galaxy_remote_user_secret | default(omit) }}"
gzip: 'on'
gzip_http_version: 1.1
gzip_vary: 'on'
gzip_comp_level: 6
gzip_proxied: any
gzip_types: text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript
gzip_buffers: 16 8k
- name: api
location: /api/
proxy_pass: "http://{{ _galaxy_local_address }}/api/"
Expand All @@ -32,3 +39,22 @@ galaxy_nginx_vhost_config:
location: = /galaxy502.html
root: "{{ _galaxy_error_502 | dirname }}"
internal: ''
- name: x_accel_redirect
location: /_x_accel_redirect/
internal: ''
alias: '/'
add_header: 'Access-Control-Allow-Origin $upstream_http_access_control_allow_origin'
add_header: 'Access-Control-Allow-Methods $upstream_http_access_control_allow_methods'
- name: tus
location: '/api/upload/resumable_upload'
proxy_request_buffering: 'off'
proxy_buffering: 'off'
proxy_http_version: '1.1'
set_headers:
X-Forwarded-Host: '$host'
X-Forwarded-Proto: '$scheme'
Upgrade: '$http_upgrade'
Connection: 'Upgrade'
client_max_body_size: '0'
proxy_pass: http://localhost:{{ tusd_port }}/files;

Loading