server { listen 443 ssl http2; server_name www.artiks.tk; server_tokens off; include snippets/ssl-params.conf; return 301 https://artiks.tk$request_uri; } server { listen 443 ssl http2; server_name artiks.tk; 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://artiks-tk-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; } }