2022-01-25 09:45:30 +01:00
|
|
|
import Config
|
|
|
|
|
|
|
|
config :ha_handler,
|
2022-06-09 10:15:07 +02:00
|
|
|
http_port: 4040,
|
2022-01-25 10:46:25 +01:00
|
|
|
acme_challenge_path: "acme-challenge",
|
2022-02-19 10:18:05 +01:00
|
|
|
haproxy_socket: System.get_env("HAPROXY_SOCKET") || "/var/run/haproxy.sock",
|
2022-06-09 10:15:07 +02:00
|
|
|
handler_instances: [
|
|
|
|
:"ha_handler@fenschel",
|
|
|
|
:"ha_handler2@fenschel"
|
|
|
|
],
|
2022-04-20 11:00:21 +02:00
|
|
|
pgsql_instances: [
|
|
|
|
[
|
|
|
|
hostname: "pgsql.lnth.ch.recycled.cloud",
|
|
|
|
username: "postgres",
|
|
|
|
database: "postgres",
|
|
|
|
haproxy_server: "lnth",
|
2022-06-09 10:15:07 +02:00
|
|
|
password: "secret",
|
2022-04-20 11:00:21 +02:00
|
|
|
socket_options: [:inet6],
|
|
|
|
ssl: true
|
|
|
|
],
|
|
|
|
[
|
|
|
|
hostname: "pgsql.fvil.ch.recycled.cloud",
|
|
|
|
haproxy_server: "fvil",
|
|
|
|
username: "postgres",
|
|
|
|
database: "postgres",
|
2022-06-09 10:15:07 +02:00
|
|
|
password: "secret",
|
2022-04-20 11:00:21 +02:00
|
|
|
socket_options: [:inet6],
|
|
|
|
ssl: true
|
|
|
|
]
|
|
|
|
],
|
|
|
|
drbd_instances: [
|
|
|
|
[
|
|
|
|
hostname: "drbd.lnth.ch.recycled.cloud",
|
2022-06-09 10:15:07 +02:00
|
|
|
password: "secret",
|
2022-04-20 11:00:21 +02:00
|
|
|
haproxy_server: "lnth"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
hostname: "drbd.fvil.ch.recycled.cloud",
|
2022-06-09 10:15:07 +02:00
|
|
|
password: "secret",
|
2022-04-20 11:00:21 +02:00
|
|
|
haproxy_server: "fvil"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
config :appsignal, :config,
|
|
|
|
active: false,
|
|
|
|
otp_app: :ha_handler,
|
|
|
|
name: "ha-handler",
|
|
|
|
push_api_key: "secret",
|
2022-07-04 12:36:34 +02:00
|
|
|
ignore_namespaces: ["pgsql", "drbd"],
|
2022-04-20 11:00:21 +02:00
|
|
|
env: config_env()
|