diff --git a/etc/base.yaml.gotmpl b/etc/base.yaml.gotmpl index 990204ab..0bee5a73 100644 --- a/etc/base.yaml.gotmpl +++ b/etc/base.yaml.gotmpl @@ -41,10 +41,12 @@ radar_grafana: # kratos: # {{- $secrets := exec "sops" (list "-d" "production.yaml") | fromYaml }} # config: -# {{- $postgres_user := "postgres" }} +# {{- $postgres_user := $secrets.management_portal.postgres.user | default "postgres" }} # {{- $postgres_password := $secrets.management_portal.postgres.password }} -# {{- $postgres_database := $secrets.management_portal.postgres.password }} -# dsn: {{ printf "postgres://%s:%s@%s/%s" $postgres_user $postgres_password "postgres/" $postgres_database | quote }} +# {{- $postgres_host := $secrets.management_portal.postgres.host | default "postgresql" }} +# {{- $postgres_port := $secrets.management_portal.postgres.port | default "5432" }} +# {{- $postgres_database := "kratos" }} +# dsn: {{ printf "postgres://%s:%s@%s:%d/%s" $postgres_user $postgres_password $postgres_host $postgres_port $postgres_database | quote }} # courier: # smtp: # {{- $smtp_user := $secrets.management_portal.smtp.username }}