| 12345678910111213141516171819202122232425262728293031 |
- server {
- listen 80;
- server_name <url>;
- root <path/to/website>;
- access_log </path/to/log>/darkfi-webshop.access.log;
- error_log </path/to/log>/darkfi-webshop.error.log;
- location / {
- proxy_pass http://127.0.0.1:<port>;
- 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";
- }
- }
|