haproxy reaching to hostname is wip
This commit is contained in:
parent
6cbf1fc694
commit
a8dfbe7154
1 changed files with 80 additions and 77 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue