nodes/htz.ex42-1048908: fix X-Forwarded-For header for matrix-media-repo
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-07-04 20:03:22 +02:00
parent b5ab21549d
commit cbc0a1a927
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 4 additions and 1 deletions

View file

@ -99,7 +99,7 @@ server {
% if ssl: % if ssl:
proxy_set_header X-Forwarded-Proto HTTPS; proxy_set_header X-Forwarded-Proto HTTPS;
% endif % endif
proxy_set_header X-Forwarded-Host ${domain}; proxy_set_header X-Forwarded-Host ${options.get('x_forwarded_host', domain)};
% for option, value in options.get('proxy_set_header', {}).items(): % for option, value in options.get('proxy_set_header', {}).items():
proxy_set_header ${option} ${value}; proxy_set_header ${option} ${value};
% endfor % endfor

View file

@ -358,6 +358,9 @@ nodes['htz.ex42-1048908'] = {
'/_matrix/media': { '/_matrix/media': {
'target': 'http://localhost:20090', 'target': 'http://localhost:20090',
'client_max_body_size': '500M', 'client_max_body_size': '500M',
# matrix-media-repo needs this to be the
# homeserver address.
'x_forwarded_host': 'franzi.business',
}, },
'/_synapse': { '/_synapse': {
'target': 'http://[::1]:20080', 'target': 'http://[::1]:20080',