fix: set default values for missing env variables
This commit is contained in:
parent
783392bc36
commit
12b28932b2
2
abra.sh
2
abra.sh
|
@ -1,5 +1,5 @@
|
||||||
export CUSTOM_CSS_VERSION=v2
|
export CUSTOM_CSS_VERSION=v2
|
||||||
export CUSTOM_FLOWS_VERSION=v4
|
export CUSTOM_FLOWS_VERSION=v5
|
||||||
|
|
||||||
customize() {
|
customize() {
|
||||||
if [ -z "$1" ]
|
if [ -z "$1" ]
|
||||||
|
|
|
@ -4,12 +4,13 @@ metadata:
|
||||||
blueprints.goauthentik.io/instantiate: "true"
|
blueprints.goauthentik.io/instantiate: "true"
|
||||||
name: Custom - Flows
|
name: Custom - Flows
|
||||||
context:
|
context:
|
||||||
|
welcome_message: {{ if eq (env "WELCOME_MESSAGE") "" }} "Welcome to authentik!" {{ else }} {{ env "WELCOME_MESSAGE" }} {{ end }}
|
||||||
####### Translations ########
|
####### Translations ########
|
||||||
transl_recovery: {{ if eq (env "DEFAULT_LANGUAGE") "de" }} Passwort Zurücksetzen {{ else }} Reset your password {{ end }}
|
transl_recovery: {{ if eq (env "DEFAULT_LANGUAGE") "de" }} "Passwort Zurücksetzen" {{ else }} "Reset your password" {{ end }}
|
||||||
transl_password: {{ if eq (env "DEFAULT_LANGUAGE") "de" }} Passwort {{ else }} Password {{ end }}
|
transl_password: {{ if eq (env "DEFAULT_LANGUAGE") "de" }} "Passwort" {{ else }} "Password" {{ end }}
|
||||||
transl_password_repeat: {{ if eq (env "DEFAULT_LANGUAGE") "de" }} Passwort (wiederholen) {{ else }} Password (repeat) {{ end }}
|
transl_password_repeat: {{ if eq (env "DEFAULT_LANGUAGE") "de" }} "Passwort (wiederholen)" {{ else }} "Password (repeat)" {{ end }}
|
||||||
transl_username: {{ if eq (env "DEFAULT_LANGUAGE") "de" }} Benutzername {{ else }} Username {{ end }}
|
transl_username: {{ if eq (env "DEFAULT_LANGUAGE") "de" }} "Benutzername" {{ else }} "Username" {{ end }}
|
||||||
transl_name: {{ if eq (env "DEFAULT_LANGUAGE") "de" }} Vor- und Nachname {{ else }} Full name {{ end }}
|
transl_name: {{ if eq (env "DEFAULT_LANGUAGE") "de" }} "Vor- und Nachname" {{ else }} "Full name" {{ end }}
|
||||||
|
|
||||||
entries:
|
entries:
|
||||||
######## Email Recovery Flow ########
|
######## Email Recovery Flow ########
|
||||||
|
@ -25,10 +26,10 @@ entries:
|
||||||
### PROMPTS
|
### PROMPTS
|
||||||
- identifiers:
|
- identifiers:
|
||||||
field_key: password
|
field_key: password
|
||||||
label: !Context transl_password
|
|
||||||
id: prompt-field-password
|
id: prompt-field-password
|
||||||
model: authentik_stages_prompt.prompt
|
model: authentik_stages_prompt.prompt
|
||||||
attrs:
|
attrs:
|
||||||
|
label: !Context transl_password
|
||||||
type: password
|
type: password
|
||||||
required: true
|
required: true
|
||||||
placeholder: !Context transl_password
|
placeholder: !Context transl_password
|
||||||
|
@ -36,10 +37,10 @@ entries:
|
||||||
placeholder_expression: false
|
placeholder_expression: false
|
||||||
- identifiers:
|
- identifiers:
|
||||||
field_key: password_repeat
|
field_key: password_repeat
|
||||||
label: !Context transl_password_repeat
|
|
||||||
id: prompt-field-password-repeat
|
id: prompt-field-password-repeat
|
||||||
model: authentik_stages_prompt.prompt
|
model: authentik_stages_prompt.prompt
|
||||||
attrs:
|
attrs:
|
||||||
|
label: !Context transl_password_repeat
|
||||||
type: password
|
type: password
|
||||||
required: true
|
required: true
|
||||||
placeholder: !Context transl_password_repeat
|
placeholder: !Context transl_password_repeat
|
||||||
|
@ -54,8 +55,8 @@ entries:
|
||||||
model: authentik_stages_email.emailstage
|
model: authentik_stages_email.emailstage
|
||||||
attrs:
|
attrs:
|
||||||
use_global_settings: true
|
use_global_settings: true
|
||||||
token_expiry: {{ env "EMAIL_TOKEN_EXPIRY_MINUTES" }}
|
token_expiry: {{ if eq (env "EMAIL_TOKEN_EXPIRY_MINUTES") "" }} 30 {{ else }} {{ env "EMAIL_TOKEN_EXPIRY_MINUTES" }} {{ end }}
|
||||||
subject: "{{ env "EMAIL_SUBJECT" }}"
|
subject: {{ if eq (env "EMAIL_SUBJECT") "" }} "Account Recovery" {{ else }} "{{ env "EMAIL_SUBJECT" }}" {{ end }}
|
||||||
template: email/password_reset.html
|
template: email/password_reset.html
|
||||||
activate_user_on_success: true
|
activate_user_on_success: true
|
||||||
- identifiers:
|
- identifiers:
|
||||||
|
@ -178,7 +179,7 @@ entries:
|
||||||
- attrs:
|
- attrs:
|
||||||
designation: authentication
|
designation: authentication
|
||||||
name: custom-authentication-flow
|
name: custom-authentication-flow
|
||||||
title: {{ env "WELCOME_MESSAGE" }}
|
title: !Context welcome_message
|
||||||
identifiers:
|
identifiers:
|
||||||
slug: custom-authentication-flow
|
slug: custom-authentication-flow
|
||||||
id: authentication_flow
|
id: authentication_flow
|
||||||
|
@ -240,7 +241,7 @@ entries:
|
||||||
- attrs:
|
- attrs:
|
||||||
designation: enrollment
|
designation: enrollment
|
||||||
name: invitation-enrollment-flow
|
name: invitation-enrollment-flow
|
||||||
title: {{ env "WELCOME_MESSAGE" }}
|
title: !Context welcome_message
|
||||||
identifiers:
|
identifiers:
|
||||||
slug: invitation-enrollment-flow
|
slug: invitation-enrollment-flow
|
||||||
id: invitation-enrollment-flow
|
id: invitation-enrollment-flow
|
||||||
|
@ -249,10 +250,10 @@ entries:
|
||||||
### PROMPTS
|
### PROMPTS
|
||||||
- identifiers:
|
- identifiers:
|
||||||
field_key: username
|
field_key: username
|
||||||
label: !Context transl_username
|
|
||||||
id: prompt-field-username
|
id: prompt-field-username
|
||||||
model: authentik_stages_prompt.prompt
|
model: authentik_stages_prompt.prompt
|
||||||
attrs:
|
attrs:
|
||||||
|
label: !Context transl_username
|
||||||
type: username
|
type: username
|
||||||
required: true
|
required: true
|
||||||
placeholder: !Context transl_username
|
placeholder: !Context transl_username
|
||||||
|
@ -260,10 +261,10 @@ entries:
|
||||||
placeholder_expression: false
|
placeholder_expression: false
|
||||||
- identifiers:
|
- identifiers:
|
||||||
field_key: name
|
field_key: name
|
||||||
label: !Context transl_name
|
|
||||||
id: prompt-field-name
|
id: prompt-field-name
|
||||||
model: authentik_stages_prompt.prompt
|
model: authentik_stages_prompt.prompt
|
||||||
attrs:
|
attrs:
|
||||||
|
label: !Context transl_name
|
||||||
type: text
|
type: text
|
||||||
required: true
|
required: true
|
||||||
placeholder: !Context transl_name
|
placeholder: !Context transl_name
|
||||||
|
@ -387,7 +388,7 @@ entries:
|
||||||
- attrs:
|
- attrs:
|
||||||
attributes:
|
attributes:
|
||||||
settings:
|
settings:
|
||||||
locale: {{ env "DEFAULT_LANGUAGE" }}
|
locale: {{ if eq (env "DEFAULT_LANGUAGE") "" }} en {{ else }} {{ env "DEFAULT_LANGUAGE" }} {{ end }}
|
||||||
# branding_favicon: /static/dist/assets/icons/icon.png
|
# branding_favicon: /static/dist/assets/icons/icon.png
|
||||||
# branding_logo: /static/dist/assets/icons/icon_left_brand.svg
|
# branding_logo: /static/dist/assets/icons/icon_left_brand.svg
|
||||||
# branding_title: Authentik
|
# branding_title: Authentik
|
||||||
|
|
Loading…
Reference in New Issue