From 0af1c547504e16741b473a57eb51466c1acf0ebf Mon Sep 17 00:00:00 2001 From: carzilla Date: Wed, 27 Sep 2023 17:28:11 +0200 Subject: [PATCH] Adjusted nginx.md - Certbot command didn't work, needs to be certonly if the nginx file isn't up yet (certbot certonly) - The nginx config file does not work because the ; is the delimiter for a new command, which causes nginx to think the config is incorrect. (escaped the ;) --- src/en/guide/deployment/nginx.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/en/guide/deployment/nginx.md b/src/en/guide/deployment/nginx.md index 4a0df9be07..4db23d27e5 100644 --- a/src/en/guide/deployment/nginx.md +++ b/src/en/guide/deployment/nginx.md @@ -49,7 +49,7 @@ their IP addresses and more. Install Certbot and obtain a certicate for all your domains. This will spin up its own webserver on port 80 for a moment to verify you control the given domain names. ```bash -certbot -d example.com -d www.example.com +certbot certonly -d example.com -d www.example.com ``` ## Nginx configuration @@ -94,7 +94,7 @@ server { proxy_http_version 1.1; proxy_request_buffering off; proxy_buffering off; - proxy_set_header forwarded by=\"_$hostname\";$for_addr;proto=$scheme;host=\"$http_host\"; + proxy_set_header forwarded by=\"_$hostname\"\;$for_addr\;proto=$scheme\;host=\"$http_host\"; # Allow websockets and keep-alive (avoid connection: close) proxy_set_header connection "upgrade"; proxy_set_header upgrade $http_upgrade;