nodes/htz.ex42-1048908: add proxy headers to matrix-synapse
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit
This commit is contained in:
parent
24066d89a2
commit
56a36f8cae
1 changed files with 5 additions and 1 deletions
|
@ -12,17 +12,21 @@
|
||||||
|
|
||||||
location /_matrix {
|
location /_matrix {
|
||||||
proxy_pass http://[::1]:20080;
|
proxy_pass http://[::1]:20080;
|
||||||
|
|
||||||
proxy_set_header Host "franzi.business";
|
proxy_set_header Host "franzi.business";
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /_matrix/media {
|
location /_matrix/media {
|
||||||
|
proxy_pass http://localhost:20090;
|
||||||
|
|
||||||
client_max_body_size 500M;
|
client_max_body_size 500M;
|
||||||
|
|
||||||
proxy_read_timeout 600s;
|
proxy_read_timeout 600s;
|
||||||
proxy_set_header Host "franzi.business";
|
proxy_set_header Host "franzi.business";
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
proxy_pass http://localhost:20090;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue