modified: hosts/web/configuration.nix
modified: hosts/web/webserver.nix modified: modules/common.nix
This commit is contained in:
parent
c9967059e7
commit
d536abf0f1
|
@ -9,6 +9,8 @@
|
||||||
../modules/users.nix
|
../modules/users.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
stateVersion = "21.11";
|
||||||
|
|
||||||
boot.cleanTmpDir = true;
|
boot.cleanTmpDir = true;
|
||||||
zramSwap.enable = false;
|
zramSwap.enable = false;
|
||||||
networking.hostName = "web";
|
networking.hostName = "web";
|
||||||
|
@ -16,14 +18,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
permitRootLogin = "no";
|
permitRootLogin = "no";
|
||||||
passwordAuthentication = false;
|
passwordAuthentication = false;
|
||||||
challengeResponseAuthentication = false;
|
kbdInteractiveAuthentication = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Nix Garbage Collector
|
|
||||||
nix.gc = {
|
|
||||||
automatic = true;
|
|
||||||
dates = "weekly";
|
|
||||||
options = "--delete-older-than 7d";
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,12 +6,12 @@ in
|
||||||
services.caddy = {
|
services.caddy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
email = "lucazeau.alexandre@gmail.com";
|
email = "lucazeau.alexandre@gmail.com";
|
||||||
config = ''
|
extraConfig = ''
|
||||||
{
|
|
||||||
storage file_system {
|
storage file_system {
|
||||||
root ${caddyDir}
|
root * ${caddyDir}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
https://git.atlanticaweb.fr {
|
https://git.atlanticaweb.fr {
|
||||||
encode gzip
|
encode gzip
|
||||||
reverse_proxy http://localhost:3001
|
reverse_proxy http://localhost:3001
|
||||||
|
|
|
@ -15,4 +15,11 @@
|
||||||
procs
|
procs
|
||||||
exa
|
exa
|
||||||
];
|
];
|
||||||
|
# Nix Garbage Collector
|
||||||
|
nix.gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "weekly";
|
||||||
|
options = "--delete-older-than 7d";
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue