fix env var reference in template

This commit is contained in:
marlon 2024-10-02 13:48:28 -04:00
parent 3579256610
commit c5541ea2fc

View File

@ -550,7 +550,7 @@
# gitlab_rails['smartcard_required_for_git_access'] = false
# gitlab_rails['smartcard_san_extensions'] = false
{{ if eq SSO "true" }}
{{ if eq env "SSO" "true" }}
### OmniAuth Settings
###! Docs: https://docs.gitlab.com/ee/integration/omniauth.html
# gitlab_rails['omniauth_enabled'] = nil
@ -568,20 +568,20 @@ gitlab_rails['omniauth_block_auto_created_users'] = false
gitlab_rails['omniauth_providers'] = [
{
"name" => "openid_connect",
"label" => "{{ ORG_NAME }}",
"icon" => "https://git.{{ BASE_DOMAIN }}/uploads/-/system/appearance/favicon/1/favicon.png",
"label" => "{{ env "ORG_NAME" }}",
"icon" => "https://git.{{ env "BASE_DOMAIN" }}/uploads/-/system/appearance/favicon/1/favicon.png",
"args" => {
"name" => "openid_connect",
"scope" => ["openid","profile","email"],
"response_type" => "code",
"issuer" => "https://accounts.{{ BASE_DOMAIN }}/realms/{{ KEYCLOAK_REALM }}",
"issuer" => "https://accounts.{{ env "BASE_DOMAIN" }}/realms/{{ env "KEYCLOAK_REALM" }}",
"discovery" => true,
"client_auth_method" => "query",
"send_scope_to_token_endpoint" => "false",
"client_options" => {
"identifier" => "gitlab",
"secret" => "{{ GITLAB_KEYCLOAK_SECRET }}",
"redirect_uri" => "https://git.{{ BASE_DOMAIN }}/users/auth/openid_connect/callback"
"secret" => "{{ env "GITLAB_KEYCLOAK_SECRET" }}",
"redirect_uri" => "https://git.{{ env "BASE_DOMAIN" }}/users/auth/openid_connect/callback"
}
}
}