From d4645d50ab0a43517f33aff5953b392ef431f2e1 Mon Sep 17 00:00:00 2001 From: szaimen Date: Mon, 24 Oct 2022 18:57:18 +0200 Subject: [PATCH] make nginx config more verbose Signed-off-by: szaimen --- reverse-proxy.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/reverse-proxy.md b/reverse-proxy.md index 242b661d..541a09c9 100644 --- a/reverse-proxy.md +++ b/reverse-proxy.md @@ -236,7 +236,10 @@ Of course you need to modify `` to the domain on which you want Add this to you nginx config: ``` -location / { +server { + listen 443 ssl; + server_name ; + location / { proxy_pass http://localhost:11000; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; @@ -248,6 +251,10 @@ location / { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; } + ssl_certificate /etc/letsencrypt/live//fullchain.pem; # managed by certbot on host machine + ssl_certificate_key /etc/letsencrypt/live//privkey.pem; # managed by certbot on host machine +} + ``` and this to the http{...}-section in your nginx.conf: