Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2c9745a

Browse files
fix(docs): correct nginx X-Forwarded-Proto and certbot instructions flavor (backport to release/2.34) (#28171)
Backport of #28086 to `release/2.34` (ESR). Cherry-picked `b0e93b6e3b59` from `main` via `git cherry-pick -x`. Docs-only change; applied cleanly with no conflicts. The `backport` label on the original merged PR did not produce a 2.34 backport, so this is created by hand. 2.34 is listed in `scripts/release_channels/esr_versions.txt`, so it is a valid backport target. - Original PR: #28086 - Tracking: DOCS-651 > This PR was created with AI assistance (Coder Agents).
1 parent f518fb2 commit 2c9745a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/tutorials/reverse-proxy-nginx.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ you're using `coder.example.com` as your subdomain.
5454
## Install and configure LetsEncrypt Certbot
5555

5656
1. Install LetsEncrypt Certbot: Refer to the
57-
[CertBot documentation](https://certbot.eff.org/instructions?ws=apache&os=ubuntufocal&tab=wildcard).
57+
[CertBot documentation](https://certbot.eff.org/instructions?ws=nginx&os=ubuntufocal&tab=wildcard).
5858
Be sure to pick the wildcard tab and select your DNS provider for
5959
instructions to install the necessary DNS plugin.
6060

@@ -134,7 +134,7 @@ providers, refer to the
134134
proxy_set_header Host $host;
135135
proxy_set_header X-Real-IP $remote_addr;
136136
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
137-
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
137+
proxy_set_header X-Forwarded-Proto $scheme;
138138
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always;
139139
}
140140
}

0 commit comments

Comments
 (0)