From b6a30feab996c37bf5cf5398b1720810802387a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20Torma?= Date: Mon, 6 Mar 2023 14:13:01 +0100 Subject: [PATCH] add matrix custom path --- host_vars/matrix.yaml | 4 ++++ roles/webserver/templates/nginx.conf | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/host_vars/matrix.yaml b/host_vars/matrix.yaml index 491674c..0e36d73 100644 --- a/host_vars/matrix.yaml +++ b/host_vars/matrix.yaml @@ -5,6 +5,10 @@ webserver: port: 8080 bigrequests: true https: false + additionallocations: + - location: /slack + https: false + port: 8432 - domain: "chat.tormakristof.eu" port: 8181 bigrequests: true diff --git a/roles/webserver/templates/nginx.conf b/roles/webserver/templates/nginx.conf index d9e1859..5c16977 100644 --- a/roles/webserver/templates/nginx.conf +++ b/roles/webserver/templates/nginx.conf @@ -40,9 +40,12 @@ http { proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-MS-Proxy webgateway.intra.tormakris.dev; + proxy_set_header X-MS-Forwarded-Client-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection $http_connection; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $http_connection; + proxy_set_header X-Forwarded-Proto https; client_body_buffer_size 128k; proxy_connect_timeout 90; proxy_send_timeout 120;