fix: don't break when logging in with keycloak

This commit is contained in:
2023-10-23 20:16:37 +02:00
parent 75d1303118
commit 20fea0bedf
5 changed files with 22 additions and 5 deletions

View File

@ -8,15 +8,15 @@ http {
server {
listen 80;
access_log off;
error_log /dev/null;
access_log {{ env "NGINX_ACCESS_LOG_LOCATION" }};
error_log {{ env "NGINX_ERROR_LOG_LOCATION" }};
server_name {{ env "DOMAIN" }};
location ~* ^(\/_matrix|\/_synapse\/client) {
proxy_pass http://{{ env "STACK_NAME"}}_synapse:8008;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header Host $host;
client_max_body_size 50M;
proxy_http_version 1.1;