mirror of
https://git.digitalstudium.com/digitalstudium/digitalstudium.com
synced 2023-12-29 08:06:35 +00:00
Fix nginx config
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
```
|
Reference in New Issue
Block a user