This repository has been archived on 2022-08-15. You can view files and clone it, but cannot push or open issues or pull requests.
shemu/nginx-sample.conf

18 lines
487 B
Plaintext

proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=STATIC:10m inactive=24h max_size=1g;
server {
listen 80;
listen [::]:80;
location /
{
proxy_pass http://localhost:8080;
proxy_set_header X-Real-IP $remote_addr;
proxy_cache STATIC;
proxy_cache_valid 200 10s;
proxy_redirect off;
proxy_cache_use_stale error timeout invalid_header updating
http_500 http_502 http_503 http_504;
}
}