proxy-nginx/nginx-config/https-prepare-to-cache/sites-available/https-arti24.eu.conf

31 lines
800 B
Plaintext

server {
listen 443 ssl http2;
server_name www.arti24.eu;
server_tokens off;
include snippets/ssl-params.conf;
return 301 https://arti24.eu$request_uri;
}
server {
listen 443 ssl http2;
server_name arti24.eu;
server_tokens off;
include snippets/ssl-params.conf;
include snippets/security-headers.conf;
location / {
limit_req zone=ip_limit burst=20 nodelay;
proxy_pass http://arti24-eu-container:${PORT:-3000};
include snippets/proxy-headers.conf;
include snippets/proxy-optimization.conf;
}
location ~* \.(?:jpg|jpeg|png|gif|ico|css|js|svg|webp|woff2)$ {
include snippets/static-cache.conf;
}
location ~ ^/(images|gallery|photos)/ {
include snippets/image-cache.conf;
}
}