Skip to content

Commit f7dd9de

Browse files
Create a new env var for keycloak that links to account's contact form (#476)
1 parent 878f405 commit f7dd9de

File tree

6 files changed

+8
-2
lines changed

6 files changed

+8
-2
lines changed

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ services:
136136
KC_SPI_THEME_WELCOME_THEME: "tbpro"
137137
KC_TBPRO_HOME: "http://localhost:8087/"
138138
KC_TBPRO_SIGN_UP: "http://localhost:8087/sign-up"
139+
KC_TBPRO_CONTACT: "http://localhost:8087/contact"
139140
KC_TBPRO_PRIMARY_DOMAIN: "example.org"
140141
volumes:
141142
- "./keycloak/themes:/opt/keycloak/themes"

keycloak/themes/tbpro/login/login-username.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<script>
66
window._page['currentView'] = {
77
formAction: '${url.loginAction}',
8-
supportUrl: '${client.baseUrl}contact',
8+
supportUrl: '${properties.tbproContactUrl}',
99
clientUrl: '${client.baseUrl}',
1010
// <#if realm.password && realm.registrationAllowed && !registrationDisabled??>
1111
registerUrl: '${url.registrationUrl}',

keycloak/themes/tbpro/login/login.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<script>
66
window._page['currentView'] = {
77
formAction: '${url.loginAction}',
8-
supportUrl: '${client.baseUrl}contact',
8+
supportUrl: '${properties.tbproContactUrl}',
99
clientUrl: '${client.baseUrl}',
1010
// <#if realm.password && realm.registrationAllowed && !registrationDisabled??>
1111
registerUrl: '${url.registrationUrl}',

keycloak/themes/tbpro/login/theme.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ scripts=static/app.js
55

66
tbproPrimaryDomain=${env.KC_TBPRO_PRIMARY_DOMAIN}
77
tbproSignupUrl=${env.KC_TBPRO_SIGN_UP}
8+
tbproContactUrl=${env.KC_TBPRO_CONTACT}

pulumi/config.prod.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,8 @@ resources:
254254
value: "https://accounts.tb.pro/dashboard"
255255
- name: KC_TBPRO_SIGN_UP
256256
value: "https://accounts.tb.pro/sign-up"
257+
- name: KC_TBPRO_CONTACT
258+
value: "https://accounts.tb.pro/contact"
257259
- name: KC_TBPRO_PRIMARY_DOMAIN
258260
value: "thundermail.com"
259261

pulumi/config.stage.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ resources:
252252
value: "https://accounts-stage.tb.pro/dashboard"
253253
- name: KC_TBPRO_SIGN_UP
254254
value: "https://accounts-stage.tb.pro/sign-up"
255+
- name: KC_TBPRO_CONTACT
256+
value: "https://accounts-stage.tb.pro/contact"
255257
- name: KC_TBPRO_PRIMARY_DOMAIN
256258
value: "stage-thundermail.com"
257259

0 commit comments

Comments
 (0)