portal/config/config.exs
Mikael Hugo 009d644a15 feat: scaffold centralcloud Elixir umbrella (my. + ops. + core)
- Umbrella root with apps/centralcloud_{my,ops,core}
- centralcloud_core: HostBill Admin API client, DR Portal API client
- centralcloud_my: Phoenix LiveView app for my.centralcloud.com
- centralcloud_ops: Phoenix app for ops.centralcloud.com
- Shared config: Authentik OIDC, HostBill, DR Portal endpoints
- README with quick start and required env vars

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-09 19:49:01 +02:00

30 lines
1.1 KiB
Elixir

import Config
config :centralcloud_my, CentralcloudMy.Endpoint,
url: [host: "my.centralcloud.com"],
http: [port: 4001],
secret_key_base: System.fetch_env!("MY_SECRET_KEY_BASE")
config :centralcloud_ops, CentralcloudOps.Endpoint,
url: [host: "ops.centralcloud.com"],
http: [port: 4000],
secret_key_base: System.fetch_env!("OPS_SECRET_KEY_BASE")
# HostBill Admin API
config :centralcloud_core, :hostbill,
base_url: System.get_env("HOSTBILL_URL", "https://portal.centralcloud.com"),
api_id: System.fetch_env!("HOSTBILL_API_ID"),
api_key: System.fetch_env!("HOSTBILL_API_KEY")
# DR Portal API
config :centralcloud_core, :dr_portal,
base_url: System.get_env("DR_PORTAL_URL", "https://dr.centralcloud.com"),
api_key: System.fetch_env!("DR_PORTAL_API_KEY")
# Authentik OIDC
config :centralcloud_core, :oidc,
issuer: System.get_env("AUTHENTIK_ISSUER", "https://sso.centralcloud.com/application/o/centralcloud/"),
client_id: System.fetch_env!("OIDC_CLIENT_ID"),
client_secret: System.fetch_env!("OIDC_CLIENT_SECRET")
import_config "#{config_env()}.exs"