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

Enable Nginx content cache for LB #33

Open
a3linux opened this issue Jul 12, 2023 · 0 comments
Open

Enable Nginx content cache for LB #33

a3linux opened this issue Jul 12, 2023 · 0 comments

Comments

@a3linux
Copy link
Owner

a3linux commented Jul 12, 2023

Homecloud LB enable Nginx content cache.

Sample config
http {
proxy_cache_path /data/nginx/cache levels=1:2 keys_zone=STATIC:10m
inactive=24h max_size=1g;
server {
location / {
proxy_pass http://1.2.3.4/;
proxy_set_header Host $host;
proxy_buffering on;
proxy_cache STATIC;
proxy_cache_valid 200 1d;
proxy_cache_use_stale error timeout invalid_header updating
http_500 http_502 http_503 http_504;
}
}
}

https://www.reddit.com/r/selfhosted/comments/12z27er/nginx_proxy_cache_ramdisk_enabled_or_disabled/
This is a discussion on Reddit about this topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant