18 lines
487 B
Plaintext
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;
|
|
}
|
|
}
|