Fix nginx config

This commit is contained in:
Digital Studium
2023-04-23 18:33:17 +03:00
parent dc52bd51e1
commit a143899162
2 changed files with 18 additions and 6 deletions

View File

@@ -65,7 +65,7 @@ server {
```nginx
http {
proxy_cache_path /data/nginx/cache levels=1:2 keys_zone=STATIC:10m
proxy_cache_path /data/nginx/cache levels=1:2 keys_zone=STATIC:10m;
inactive=24h max_size=1g;
}
```
@@ -83,8 +83,7 @@ server {
proxy_set_header Host $host;
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;
proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;
}
}
```