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
|
||||
];
|
||||
|
||||
stateVersion = "21.11";
|
||||
|
||||
boot.cleanTmpDir = true;
|
||||
zramSwap.enable = false;
|
||||
networking.hostName = "web";
|
||||
|
@ -16,14 +18,7 @@
|
|||
enable = true;
|
||||
permitRootLogin = "no";
|
||||
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 = {
|
||||
enable = true;
|
||||
email = "lucazeau.alexandre@gmail.com";
|
||||
config = ''
|
||||
{
|
||||
extraConfig = ''
|
||||
|
||||
storage file_system {
|
||||
root ${caddyDir}
|
||||
root * ${caddyDir}
|
||||
}
|
||||
}
|
||||
|
||||
https://git.atlanticaweb.fr {
|
||||
encode gzip
|
||||
reverse_proxy http://localhost:3001
|
||||
|
|
|
@ -15,4 +15,11 @@
|
|||
procs
|
||||
exa
|
||||
];
|
||||
# Nix Garbage Collector
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 7d";
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue