mirror of
https://github.com/amigan/rustypaste-pretty.git
synced 2024-11-21 20:09:48 -05:00
docs(readme): update nginx example
This commit is contained in:
parent
cb95016d5e
commit
466a87b8d2
1 changed files with 7 additions and 6 deletions
13
README.md
13
README.md
|
@ -103,12 +103,13 @@ Example server configuration with reverse proxy:
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://localhost:8000/;
|
proxy_pass http://localhost:8000/;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
add_header X-XSS-Protection "1; mode=block";
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
add_header X-Frame-Options "sameorigin";
|
add_header X-XSS-Protection "1; mode=block";
|
||||||
add_header X-Content-Type-Options "nosniff";
|
add_header X-Frame-Options "sameorigin";
|
||||||
|
add_header X-Content-Type-Options "nosniff";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue