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