Draft
Conversation
Configure `proxy_cache_path` and define a macro `upstream_galaxy_cache()` that allows NGINX to cache content by itself for a given location, so that requests do not have to be sent to the (slow Python) upstream. Use it to cache the favicon and `/static`. Using this approach, static files are still served by Galaxy, which knows best where to find them (especially regarding edge cases, such as per-subdomain favicons); but NGINX caches them so that gunicorns have to work very little (once every 30m).
Contributor
Author
|
If you like this idea we could integrate - role: nginx_cache_dir
vars:
nginx_cache_dir_owner: root
nginx_cache_dir_group: root
nginx_cache_dir_mode: "0777"
- usegalaxy-eu.nginx
- nginx_cache_dir |
This was referenced Apr 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Configure
proxy_cache_pathand define a macroupstream_galaxy_cache()that allows NGINX to cache content by itself for a given location, so that requests do not have to be sent to the (slow Python) upstream. Use it to cache the favicon and/static.Using this approach, static files are still served by Galaxy, which knows best where to find them (especially regarding edge cases, such as per-subdomain static files); but NGINX caches them so that gunicorns have to work very little (once every 30m).
Closes https://github.com/usegalaxy-eu/issues/issues/919, https://github.com/usegalaxy-eu/issues/issues/927. Supersedes #2001.