Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

Adjusted nginx.md #179

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/en/guide/deployment/nginx.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down