mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-22 06:54:25 +01:00
Remove meta.ports and meta.domains modules
This commit is contained in:
parent
d8abea9e18
commit
b487ec8ae7
31 changed files with 8 additions and 273 deletions
|
|
@ -95,7 +95,7 @@ in
|
|||
message = "Each caddy virtual host must set exactly one of `port` or `files`";
|
||||
};
|
||||
|
||||
meta.ports.tcp = [ cfg.metricsPort ];
|
||||
networking.firewall.allowedTCPPorts = lib.mkIf publicHostsExist webPorts;
|
||||
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
|
|
@ -111,11 +111,6 @@ in
|
|||
custom.persistence.directories = [ "/var/lib/caddy" ];
|
||||
}
|
||||
|
||||
(lib.mkIf publicHostsExist {
|
||||
meta.ports.tcp = webPorts;
|
||||
networking.firewall.allowedTCPPorts = webPorts;
|
||||
})
|
||||
|
||||
(lib.mkIf privateHostsExist {
|
||||
sops.secrets = {
|
||||
"porkbun/api-key".owner = config.users.users.acme.name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue