Updated Deployment (markdown)

httpjamesm
2023-02-04 13:43:28 -05:00
parent a0d054babb
commit 312ffce5fa
-9
@@ -54,13 +54,6 @@ server {
ssl_certificate /etc/ssl/cert.pem;
ssl_certificate_key /etc/ssl/key.pem;
location /static/ {
add_header Cache-Control "no-cache, no-store, must-revalidate" always;
add_header Pragma "no-cache" always;
add_header Expires "0" always;
proxy_pass http://host:port/static/;
}
location / {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://host:port;
@@ -69,8 +62,6 @@ server {
}
```
The `/static/` block is added to put additional cache headers to prevent visual bugs during updates, but this isn't required.
`$remote_addr` is passed to the app via `X-Forwarded-For` to enforce the anti-scraping ratelimit properly. If you remove this block, it may block access globally if your instance is abused.
## Reload