From 5a0ed3c12bd38bf186f9c69d56d89e65fa696aeb Mon Sep 17 00:00:00 2001 From: rjshrjndrn Date: Thu, 5 Sep 2019 11:55:38 +0530 Subject: [PATCH] Issue #000 feat: Adding default route for merge.domain --- ansible/roles/stack-proxy/templates/keycloak.conf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ansible/roles/stack-proxy/templates/keycloak.conf b/ansible/roles/stack-proxy/templates/keycloak.conf index e8d2ab054d..42ffde571c 100644 --- a/ansible/roles/stack-proxy/templates/keycloak.conf +++ b/ansible/roles/stack-proxy/templates/keycloak.conf @@ -63,5 +63,19 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } + location / { + rewrite ^/(.*) /$1 break; + + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Scheme $scheme; + proxy_connect_timeout 5; + proxy_send_timeout 60; + proxy_read_timeout 70; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header Connection ""; + proxy_http_version 1.1; + proxy_pass http://player; + } }