modified: hosts/web/configuration.nix

modified:   hosts/web/webserver.nix
	modified:   modules/common.nix
This commit is contained in:
Alexandre LUCAZEAU 2022-07-02 18:20:21 +00:00
parent c9967059e7
commit d536abf0f1
3 changed files with 14 additions and 12 deletions

View File

@ -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";
};
}

View File

@ -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

View File

@ -15,4 +15,11 @@
procs
exa
];
# Nix Garbage Collector
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
}