File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1+ Fix example in reverse proxy docs to include server port.
Original file line number Diff line number Diff 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;
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments