server { listen 80; server_name ; root ; access_log /darkfi-webshop.access.log; error_log /darkfi-webshop.error.log; location / { proxy_pass http://127.0.0.1:; proxy_http_version 1.1; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Upgrade $http_upgrade; proxy_redirect off; proxy_buffering off; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Host $server_name; } # cache resources under /static location ~* \.(png|jpg|jpeg|gif|svg|ico|woff|woff2|css|js)$ { expires 1y; add_header Cache-Control "public, no-transform"; } }