mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-03 19:42:10 +02:00
@@ -16,12 +16,21 @@
|
|||||||
credentialsFile = config.sops.secrets.cloudflare-dns-token.path;
|
credentialsFile = config.sops.secrets.cloudflare-dns-token.path;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."default" = {
|
services.nginx.virtualHosts = {
|
||||||
default = true;
|
"default" = {
|
||||||
locations."/" = { return = 444; };
|
default = true;
|
||||||
extraConfig = ''
|
locations."/" = { return = 444; };
|
||||||
server_name _;
|
};
|
||||||
'';
|
"*.hadi.diy" = {
|
||||||
|
useACMEHost = "hadi.diy";
|
||||||
|
forceSSL = true;
|
||||||
|
locations."/" = { return = 444; };
|
||||||
|
};
|
||||||
|
"aaaaaa.hadi.diy" = {
|
||||||
|
useACMEHost = "hadi.diy";
|
||||||
|
forceSSL = true;
|
||||||
|
locations."/" = { return = 444; };
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||||
|
|||||||
Reference in New Issue
Block a user