Skip to content

Commit 1cd9b79

Browse files
committed
Update docs with what we've learned from #17986
See #17986
1 parent 657dd51 commit 1cd9b79

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

docker/conf-workers/nginx.conf.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ server {
3838
{% if using_unix_sockets %}
3939
proxy_pass http://unix:/run/main_public.sock;
4040
{% else %}
41+
# note: do not add a path (even a single /) after the port in `proxy_pass`,
42+
# otherwise nginx will canonicalise the URI and cause signature verification
43+
# errors.
4144
proxy_pass http://localhost:8080;
4245
{% endif %}
4346
proxy_set_header X-Forwarded-For $remote_addr;

docs/reverse_proxy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ server {
7474
proxy_pass http://localhost:8008;
7575
proxy_set_header X-Forwarded-For $remote_addr;
7676
proxy_set_header X-Forwarded-Proto $scheme;
77-
proxy_set_header Host $host;
77+
proxy_set_header Host $host:$server_port;
7878
7979
# Nginx by default only allows file uploads up to 1M in size
8080
# Increase client_max_body_size to match max_upload_size defined in homeserver.yaml

0 commit comments

Comments
 (0)