From 921a6adcb82cf002c412036108f88cdc76306994 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 31 Aug 2021 16:18:05 +0200 Subject: [PATCH] fix --- conf/nginx.conf | 15 ++++++++------- doc/DESCRIPTION.md | 2 ++ 2 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 doc/DESCRIPTION.md diff --git a/conf/nginx.conf b/conf/nginx.conf index cfc3e41..689aaaa 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -5,13 +5,14 @@ location / { rewrite ^ https://$server_name$request_uri? permanent; } - proxy_pass https://127.0.0.1:__PORT__; - proxy_redirect off; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Host $server_name; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header Host $http_host; + proxy_set_header X-NginX-Proxy true; + + proxy_pass http://127.0.0.1:__PORT__; + proxy_redirect off; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; diff --git a/doc/DESCRIPTION.md b/doc/DESCRIPTION.md new file mode 100644 index 0000000..ef4443f --- /dev/null +++ b/doc/DESCRIPTION.md @@ -0,0 +1,2 @@ +NodeBB is built using the Node.js server-side Javascript platform, delivering unmatched performance. +Building on this high performance platform means fast and dependable performance that will support even the biggest and most active community. \ No newline at end of file