From 611d273231ceef31b4d17ae587192b15c6b003c0 Mon Sep 17 00:00:00 2001 From: schwukas <33559975+schwukas@users.noreply.github.com> Date: Thu, 12 Nov 2020 10:19:16 +0100 Subject: [PATCH] Updated Nginx Reverse Proxy Configuration (markdown) --- Nginx-Reverse-Proxy-Configuration.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Nginx-Reverse-Proxy-Configuration.md b/Nginx-Reverse-Proxy-Configuration.md index d177957..fb36470 100644 --- a/Nginx-Reverse-Proxy-Configuration.md +++ b/Nginx-Reverse-Proxy-Configuration.md @@ -1,3 +1,6 @@ +This is a very basic nginx reverse proxy config, secured with Let's Encrypt. Do not forget to replace ServerName with your domain and make sure you are redirecting `proxy_pass` to the correct port. + +``` # This first block redirects non-HTTPS traffic to secure port 443. Optional, but recommended. server { listen 80; @@ -22,4 +25,5 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } -} \ No newline at end of file +} +``` \ No newline at end of file