mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2026-04-14 21:29:12 +02:00
feat[server]: add home proxy
This commit is contained in:
parent
75891c3103
commit
c1c7431891
84 changed files with 2961 additions and 1601 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, config, globals, dns, confLib, ... }:
|
||||
{ self, lib, config, globals, dns, confLib, ... }:
|
||||
let
|
||||
inherit (config.swarselsystems) sopsFile;
|
||||
inherit (confLib.gen { name = "mailserver"; dir = "/var/lib/dovecot"; user = "virtualMail"; group = "virtualMail"; port = 443; }) serviceName serviceDir servicePort serviceUser serviceGroup serviceAddress serviceDomain proxyAddress4 proxyAddress6 isHome webProxy dnsServer;
|
||||
|
|
@ -32,6 +32,16 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
topology.self.services = lib.listToAttrs (map
|
||||
(service:
|
||||
lib.nameValuePair "${service}" {
|
||||
name = lib.swarselsystems.toCapitalized service;
|
||||
info = lib.mkIf (service == "postfix" || service == "roundcube") (if service == "postfix" then "https://${serviceDomain}" else "https://${roundcubeDomain}");
|
||||
icon = "${self}/files/topology-images/${service}.png";
|
||||
}
|
||||
)
|
||||
[ "postfix" "dovecot" "rspamd" "clamav" "roundcube" ]);
|
||||
|
||||
sops.secrets = {
|
||||
user1-hashed-pw = { inherit sopsFile; owner = serviceUser; };
|
||||
user2-hashed-pw = { inherit sopsFile; owner = serviceUser; };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue