make nginx config more verbose

Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
szaimen 2022-10-24 18:57:18 +02:00
parent 4cbc8c7e53
commit d4645d50ab

View file

@ -236,7 +236,10 @@ Of course you need to modify `<your-nc-domain>` to the domain on which you want
Add this to you nginx config: Add this to you nginx config:
``` ```
location / { server {
listen 443 ssl;
server_name <your-nc-domain>;
location / {
proxy_pass http://localhost:11000; proxy_pass http://localhost:11000;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host; proxy_set_header Host $host;
@ -248,6 +251,10 @@ location / {
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade; proxy_set_header Connection $connection_upgrade;
} }
ssl_certificate /etc/letsencrypt/live/<your-nc-domain>/fullchain.pem; # managed by certbot on host machine
ssl_certificate_key /etc/letsencrypt/live/<your-nc-domain>/privkey.pem; # managed by certbot on host machine
}
``` ```
and this to the http{...}-section in your nginx.conf: and this to the http{...}-section in your nginx.conf: