services/{nginx,postgres,synapse}: init

This commit is contained in:
LavaDesu 2022-02-13 21:06:56 +07:00
parent accf26c1ea
commit 3bea2397f5
Signed by: cilly
GPG key ID: 6500251E087653C9
5 changed files with 148 additions and 14 deletions

View file

@ -0,0 +1,22 @@
{ ... }: {
security.acme.acceptTerms = true;
security.acme.email = "me@lava.moe";
services.nginx = {
enable = true;
recommendedTlsSettings = true;
recommendedOptimisation = true;
recommendedGzipSettings = true;
recommendedProxySettings = true;
virtualHosts = {
"lava.moe" = {
enableACME = true;
forceSSL = true;
locations."/".extraConfig = ''
return 404;
'';
};
};
};
}