use only url from config
All checks were successful
Build and Publish / build-release (push) Successful in 1m27s

This commit is contained in:
2026-04-14 12:39:39 -05:00
parent 4dc2bfbf8e
commit a4af47f005
2 changed files with 1 additions and 15 deletions

View File

@@ -38,19 +38,9 @@ if config_env() == :prod do
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"),
socket_options: maybe_ipv6
pg_host = System.get_env("PG_HOST") || System.get_env("PG_host")
pg_port = System.get_env("PG_PORT") || System.get_env("PG_port", "5432")
pg_user = System.get_env("PG_USER") || System.get_env("PG_username")
pg_password = System.get_env("PG_PASSWORD") || System.get_env("PG_password")
pg_database = System.get_env("PG_DATABASE") || System.get_env("PG_dbname")
config :policy_service, PolicyService.EventStore,
serializer: Commanded.Serialization.JsonSerializer,
username: pg_user || raise("PG_USER or PG_username is required"),
password: pg_password || raise("PG_PASSWORD or PG_password is required"),
database: pg_database || raise("PG_DATABASE or PG_dbname is required"),
hostname: pg_host || raise("PG_HOST or PG_host is required"),
port: String.to_integer(pg_port || "5432"),
url: database_url,
pool_size: 5
secret_key_base =

View File

@@ -34,10 +34,6 @@ controllers:
secretKeyRef:
name: policy-service-pg-app
key: uri
envFrom:
- secretRef:
name: policy-service-pg-app
prefix: PG_
probes:
liveness:
enabled: true