services/{nginx,postgres,synapse}: init
This commit is contained in:
parent
accf26c1ea
commit
3bea2397f5
5 changed files with 148 additions and 14 deletions
22
modules/services/nginx.nix
Normal file
22
modules/services/nginx.nix
Normal 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;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue