Files
HaimKortovich c81b1673d4
Some checks failed
Build and Publish / build-release (push) Has been cancelled
add auth
2026-05-15 10:19:57 -05:00

55 lines
1.7 KiB
Elixir

import Config
config :workload_service, :amqp_url, "amqp://guest:guest@localhost:5672"
config :workload_service, WorkloadService.EventStore,
serializer: Commanded.Serialization.JsonSerializer,
username: "postgres",
password: "postgres",
database: "workload_service_eventstore_dev",
hostname: "localhost",
pool_size: 10
config :workload_service, WorkloadService.Repo,
username: "postgres",
password: "postgres",
hostname: "localhost",
database: "workload_service_dev",
stacktrace: true,
show_sensitive_data_on_connection_error: true,
pool_size: 10
config :workload_service, WorkloadServiceWeb.Endpoint,
http: [ip: {127, 0, 0, 1}],
check_origin: false,
code_reloader: true,
debug_errors: true,
secret_key_base: "rSPVNB6DCC2RMMlmk9QkCVGAzasUD6AWh5ussctvNuUxgZL9DRnFXTo6jcIz6JpB",
watchers: []
config :workload_service, dev_routes: true
config :logger, :default_formatter, format: "[$level] $message\n"
config :phoenix, :stacktrace_depth, 20
config :phoenix, :plug_init_mode, :runtime
config :open_api_spex, :cache_adapter, OpenApiSpex.Plug.NoneCache
config :workload_service,
provider_service_url: "http://localhost:4002",
solicitation_service_url: "http://localhost:8081"
config :workload_service, :zitadel,
issuer: System.get_env("ZITADEL_ISSUER", "https://id.corredorconect.com"),
client_id: System.get_env("ZITADEL_CLIENT_ID"),
client_secret: System.get_env("ZITADEL_CLIENT_SECRET"),
roles_claim: "urn:zitadel:iam:org:project:#{System.get_env("ZITADEL_PROJECT_ID")}:roles",
required_scopes: [
"openid",
"profile",
"urn:zitadel:iam:org:project:#{System.get_env("ZITADEL_PROJECT_ID")}:roles",
"urn:zitadel:iam:org:project:#{System.get_env("ZITADEL_PROJECT_ID")}:aud"
]