mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-04-02 18:20:52 +02:00
Secret services are now under cover
This commit is contained in:
parent
f01fd4e8ca
commit
96d5711503
7 changed files with 23 additions and 7 deletions
|
@ -52,6 +52,22 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mkPrivateSubdomain = name: port: {
|
||||||
|
luj.nginx.enable = true;
|
||||||
|
services.nginx.virtualHosts."${name}.julienmalka.me" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://localhost:${toString port}";
|
||||||
|
extraConfig = ''
|
||||||
|
allow 10.100.0.0/24;
|
||||||
|
deny all;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
luj = import ./luj.nix final;
|
luj = import ./luj.nix final;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -68,7 +68,7 @@
|
||||||
prefixLength = 120;
|
prefixLength = 120;
|
||||||
}];
|
}];
|
||||||
|
|
||||||
networking.nameservers = [ "8.8.8.8" ];
|
networking.nameservers = [ "10.100.0.2" ];
|
||||||
networking.hostId = "fbb334ae";
|
networking.hostId = "fbb334ae";
|
||||||
services.zfs.autoSnapshot.enable = true;
|
services.zfs.autoSnapshot.enable = true;
|
||||||
services.zfs.autoScrub.enable = true;
|
services.zfs.autoScrub.enable = true;
|
||||||
|
@ -123,7 +123,7 @@
|
||||||
publicKey = "TAIP4faPBx6gk1cifC6fdfIP6slo1ir+HMVKxQXBejo=";
|
publicKey = "TAIP4faPBx6gk1cifC6fdfIP6slo1ir+HMVKxQXBejo=";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
allowedIPs = [ "10.100.0.8" ];
|
allowedIPs = [ "10.100.0.8/32" ];
|
||||||
publicKey = "EmWRWnZfr60ekm4ZLdwa6gXU6V3p39p6tWOZ03dL+DA=";
|
publicKey = "EmWRWnZfr60ekm4ZLdwa6gXU6V3p39p6tWOZ03dL+DA=";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
@ -54,7 +54,7 @@ in
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
(mkIf cfg.nginx.enable (mkSubdomain cfg.nginx.subdomain port))]);
|
(mkIf cfg.nginx.enable (mkPrivateSubdomain cfg.nginx.subdomain port))]);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ in
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
(mkIf cfg.nginx.enable (mkSubdomain cfg.nginx.subdomain port))]);
|
(mkIf cfg.nginx.enable (mkPrivateSubdomain cfg.nginx.subdomain port))]);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ in
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
(mkIf cfg.nginx.enable (mkSubdomain cfg.nginx.subdomain port) )]);
|
(mkIf cfg.nginx.enable (mkPrivateSubdomain cfg.nginx.subdomain port) )]);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ in
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
(mkIf cfg.nginx.enable (mkSubdomain cfg.nginx.subdomain port))
|
(mkIf cfg.nginx.enable (mkPrivateSubdomain cfg.nginx.subdomain port))
|
||||||
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ in
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
(mkIf cfg.nginx.enable (mkSubdomain cfg.nginx.subdomain port) )]);
|
(mkIf cfg.nginx.enable (mkPrivateSubdomain cfg.nginx.subdomain port) )]);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue