mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-28 14:50:55 +01:00
chore: disable records for default vHost
This commit is contained in:
parent
fdb63444b0
commit
c6c8197af9
1 changed files with 10 additions and 5 deletions
|
@ -1,6 +1,7 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
with lib;
|
with lib;
|
||||||
let cfg = config.luj.nginx;
|
let
|
||||||
|
cfg = config.luj.nginx;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -14,10 +15,15 @@ in
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
80
|
||||||
|
443
|
||||||
|
];
|
||||||
security.acme.defaults.email = "${cfg.email}";
|
security.acme.defaults.email = "${cfg.email}";
|
||||||
security.acme.acceptTerms = true;
|
security.acme.acceptTerms = true;
|
||||||
users.groups.nginx = { name = "nginx"; };
|
users.groups.nginx = {
|
||||||
|
name = "nginx";
|
||||||
|
};
|
||||||
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -38,8 +44,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
machine.meta.zones."julienmalka.me".subdomains."404" = lib.mkForce { };
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue