ha-handler/config/config.exs
2022-04-20 11:35:58 +02:00

45 lines
1 KiB
Elixir

import Config
config :ha_handler,
http_port: 4000,
acme_challenge_path: "acme-challenge",
haproxy_socket: System.get_env("HAPROXY_SOCKET") || "/var/run/haproxy.sock",
pgsql_instances: [
[
hostname: "pgsql.lnth.ch.recycled.cloud",
username: "postgres",
database: "postgres",
haproxy_server: "lnth",
password: "eicheeR6ieph5jae7oozahf3vesio9Ae",
socket_options: [:inet6],
ssl: true
],
[
hostname: "pgsql.fvil.ch.recycled.cloud",
haproxy_server: "fvil",
username: "postgres",
database: "postgres",
password: "eicheeR6ieph5jae7oozahf3vesio9Ae",
socket_options: [:inet6],
ssl: true
]
],
drbd_instances: [
[
hostname: "drbd.lnth.ch.recycled.cloud",
password: "tu9laiz9teece6aithohjohph6eCh3qu",
haproxy_server: "lnth"
],
[
hostname: "drbd.fvil.ch.recycled.cloud",
password: "tu9laiz9teece6aithohjohph6eCh3qu",
haproxy_server: "fvil"
]
]
config :appsignal, :config,
active: false,
otp_app: :ha_handler,
name: "ha-handler",
push_api_key: "secret",
env: config_env()