From 26181f77597c6a70b38723bdcb09d60d61514a5d Mon Sep 17 00:00:00 2001 From: c6ristian Date: Mon, 23 Oct 2023 21:16:32 +0200 Subject: [PATCH] Add Redirect on id.hamburg.ccc.de to the account management page --- .../configs/keycloak/nginx/id.hamburg.ccc.de.conf | 5 +++++ .../keycloak/nginx/keycloak-admin.hamburg.ccc.de.conf | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/playbooks/files/chaosknoten/configs/keycloak/nginx/id.hamburg.ccc.de.conf b/playbooks/files/chaosknoten/configs/keycloak/nginx/id.hamburg.ccc.de.conf index a5664e2..303b052 100644 --- a/playbooks/files/chaosknoten/configs/keycloak/nginx/id.hamburg.ccc.de.conf +++ b/playbooks/files/chaosknoten/configs/keycloak/nginx/id.hamburg.ccc.de.conf @@ -46,6 +46,11 @@ server { # Also provide "_hidden" for by, since it's not relevant. proxy_set_header Forwarded "for=$remote_addr;proto=https;host=$host;by=_hidden"; + # Redirect a user opening any not set location on id.hamburg.ccc.de to the account management page. + location ^~ / { + return 307 https://id.hamburg.ccc.de/realms/ccchh/account/; + } + location /js/ { proxy_pass http://127.0.0.1:8080/js/; } diff --git a/playbooks/files/chaosknoten/configs/keycloak/nginx/keycloak-admin.hamburg.ccc.de.conf b/playbooks/files/chaosknoten/configs/keycloak/nginx/keycloak-admin.hamburg.ccc.de.conf index c4f3cb8..86a72d9 100644 --- a/playbooks/files/chaosknoten/configs/keycloak/nginx/keycloak-admin.hamburg.ccc.de.conf +++ b/playbooks/files/chaosknoten/configs/keycloak/nginx/keycloak-admin.hamburg.ccc.de.conf @@ -44,6 +44,10 @@ server { allow 185.161.129.132/32; deny all; + location ^~ / { + return 307 https://keycloak-admin.hamburg.ccc.de/admin/master/console/; + } + location /js/ { proxy_pass http://127.0.0.1:8080/js/; }