mirror of https://gitlab.crans.org/nounous/nixos
configuration post-factorisation
parent
549dc069f6
commit
5d99a7fea1
|
@ -2,18 +2,35 @@
|
|||
|
||||
{
|
||||
imports = [
|
||||
./anubis.nix
|
||||
./hardware-configuration.nix
|
||||
./networking.nix
|
||||
./reverseproxy.nix
|
||||
|
||||
../../../modules
|
||||
../../../modules/services/acme.nix
|
||||
../../../modules/services/anubis.nix
|
||||
../../../modules/services/nginx.nix
|
||||
];
|
||||
|
||||
networking.hostName = "reverseproxy";
|
||||
boot.loader.grub.devices = [ "/dev/sda" ];
|
||||
|
||||
crans = {
|
||||
enable = true;
|
||||
|
||||
networking = {
|
||||
id = "51";
|
||||
srvNat.enable = true;
|
||||
srv = {
|
||||
enable = true;
|
||||
interface = "ens20";
|
||||
ipv4 = "185.230.79.42";
|
||||
};
|
||||
};
|
||||
|
||||
resticClient.when = "03:42";
|
||||
|
||||
services = {
|
||||
acme.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
system.stateVersion = "25.05";
|
||||
}
|
||||
|
|
|
@ -3,7 +3,9 @@
|
|||
{
|
||||
users.users."nginx".home = "/var/lib/nginx";
|
||||
|
||||
services.nginx.virtualHosts =
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
virtualHosts =
|
||||
let anubisConf = [
|
||||
{
|
||||
addr = "localhost";
|
||||
|
@ -94,4 +96,5 @@
|
|||
listen = anubisConf;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue