mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-02 11:12:09 +02:00
@@ -16,12 +16,21 @@
|
||||
credentialsFile = config.sops.secrets.cloudflare-dns-token.path;
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."default" = {
|
||||
default = true;
|
||||
locations."/" = { return = 444; };
|
||||
extraConfig = ''
|
||||
server_name _;
|
||||
'';
|
||||
services.nginx.virtualHosts = {
|
||||
"default" = {
|
||||
default = true;
|
||||
locations."/" = { return = 444; };
|
||||
};
|
||||
"*.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 ];
|
||||
|
||||
Reference in New Issue
Block a user