2023-10-26 14:30:28 +02:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name cdn.ixvd.net;
|
|
|
|
|
|
|
|
proxy_cache cache;
|
|
|
|
proxy_cache_valid 200 30m;
|
|
|
|
proxy_cache_valid 404 1m;
|
|
|
|
|
|
|
|
proxy_buffering on;
|
|
|
|
proxy_ignore_headers Expires;
|
|
|
|
proxy_ignore_headers X-Accel-Expires;
|
|
|
|
proxy_ignore_headers Cache-Control;
|
|
|
|
proxy_ignore_headers Set-Cookie;
|
|
|
|
|
|
|
|
proxy_hide_header X-Accel-Expires;
|
|
|
|
proxy_hide_header Expires;
|
|
|
|
proxy_hide_header Cache-Control;
|
|
|
|
proxy_hide_header Pragma;
|
|
|
|
|
|
|
|
proxy_intercept_errors on;
|
|
|
|
proxy_redirect off;
|
|
|
|
|
|
|
|
location @404 {
|
|
|
|
return 404;
|
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
2023-12-13 11:39:33 +01:00
|
|
|
autoindex on;
|
2023-11-14 03:24:22 +01:00
|
|
|
root /cdn_data;
|
2023-10-26 14:30:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
location ~ /assets(.*) {
|
|
|
|
proxy_pass https://git.ixvd.net/ixvd/assets/raw/branch/main$1;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|