mirror of
https://github.com/httpjamesm/AnonymousOverflow.git
synced 2024-12-06 19:16:43 +01:00
Updated Deployment (markdown)
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user