Merge branch 'feature/ccchh-id-redirect' into 'main'
Add Redirect on id.hamburg.ccc.de to the account management page See merge request ccchh/thinkcccentre-ansible!4
This commit is contained in:
commit
ca837c10a7
|
@ -46,6 +46,11 @@ server {
|
||||||
# Also provide "_hidden" for by, since it's not relevant.
|
# Also provide "_hidden" for by, since it's not relevant.
|
||||||
proxy_set_header Forwarded "for=$remote_addr;proto=https;host=$host;by=_hidden";
|
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/ {
|
location /js/ {
|
||||||
proxy_pass http://127.0.0.1:8080/js/;
|
proxy_pass http://127.0.0.1:8080/js/;
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,6 +44,10 @@ server {
|
||||||
allow 185.161.129.132/32;
|
allow 185.161.129.132/32;
|
||||||
deny all;
|
deny all;
|
||||||
|
|
||||||
|
location ^~ / {
|
||||||
|
return 307 https://keycloak-admin.hamburg.ccc.de/admin/master/console/;
|
||||||
|
}
|
||||||
|
|
||||||
location /js/ {
|
location /js/ {
|
||||||
proxy_pass http://127.0.0.1:8080/js/;
|
proxy_pass http://127.0.0.1:8080/js/;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue