From 466a87b8d25d0bd569ccebe375b830108ab7c1b5 Mon Sep 17 00:00:00 2001 From: orhun Date: Tue, 27 Jul 2021 16:16:31 +0300 Subject: [PATCH] docs(readme): update nginx example --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e310a96..1f37c4e 100644 --- a/README.md +++ b/README.md @@ -103,12 +103,13 @@ Example server configuration with reverse proxy: server { listen 80; location / { - proxy_pass http://localhost:8000/; - proxy_set_header Host $host; - proxy_set_header X-Forwarded-For $remote_addr; - add_header X-XSS-Protection "1; mode=block"; - add_header X-Frame-Options "sameorigin"; - add_header X-Content-Type-Options "nosniff"; + proxy_pass http://localhost:8000/; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header X-Forwarded-Proto $scheme; + add_header X-XSS-Protection "1; mode=block"; + add_header X-Frame-Options "sameorigin"; + add_header X-Content-Type-Options "nosniff"; } } ```