1
0
Fork 0

haproxy reaching to hostname is wip

This commit is contained in:
ibizaman 2023-01-22 09:02:46 -08:00
parent 6cbf1fc694
commit a8dfbe7154

View file

@ -52,12 +52,12 @@ rec {
in { in {
inherit name; inherit name;
pkg = { pkg =
db { db
, web , web
}: let }: let
postgresHost = db.target.properties.hostname; postgresHost = db.target.properties.hostname;
in utils.systemd.mkService { in utils.systemd.mkService rec {
name = "vaultwarden"; name = "vaultwarden";
content = '' content = ''
@ -157,8 +157,11 @@ rec {
backend = { backend = {
# TODO: instead, we should generate target specific service https://hydra.nixos.org/build/203347995/download/2/manual/#idm140737322273072 # TODO: instead, we should generate target specific service https://hydra.nixos.org/build/203347995/download/2/manual/#idm140737322273072
servers = map (dist: { servers = map (dist: {
name = "ttrss_${dist.properties.hostname}_1"; name = "vaultwarden_${dist.properties.hostname}_1";
address = "${dist.properties.hostname}:${builtins.toString ingress}"; # TODO: should use the hostname
# address = "${dist.properties.hostname}:${builtins.toString ingress}";
address = "127.0.0.1:${builtins.toString ingress}";
resolvers = "default";
}) service; }) service;
}; };
}; };