File tree 3 files changed +5
-1
lines changed
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 {
38
38
{% if using_unix_sockets %}
39
39
proxy_pass http://unix:/run/main_public.sock;
40
40
{% 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.
41
44
proxy_pass http://localhost:8080;
42
45
{% endif %}
43
46
proxy_set_header X-Forwarded-For $remote_addr;
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ server {
74
74
proxy_pass http://localhost:8008;
75
75
proxy_set_header X-Forwarded-For $remote_addr;
76
76
proxy_set_header X-Forwarded-Proto $scheme;
77
- proxy_set_header Host $host;
77
+ proxy_set_header Host $host:$server_port ;
78
78
79
79
# Nginx by default only allows file uploads up to 1M in size
80
80
# 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