1
0

configuration/common: Define a global default virtual host for nginx

This commit is contained in:
clerie 2022-09-28 21:09:32 +02:00
parent cb8a6c998d
commit 05d7d04052

View File

@ -52,8 +52,24 @@
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts = {
"default" = {
default = true;
enableACME = true;
addSSL = true;
locations."/" = {
return = ''200 "Some piece of infrastructure\n"'';
extraConfig = ''
types { } default_type "text/plain; charset=utf-8";
'';
};
};
};
};
clerie.akne.selfSignedOnlyHostNames = [ "default" ];
security.acme = {
defaults.email = "letsencrypt@clerie.de";
acceptTerms = true;