configuration/common: Define a global default virtual host for nginx
This commit is contained in:
parent
cb8a6c998d
commit
05d7d04052
@ -52,8 +52,24 @@
|
|||||||
recommendedOptimisation = true;
|
recommendedOptimisation = true;
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
recommendedTlsSettings = 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 = {
|
security.acme = {
|
||||||
defaults.email = "letsencrypt@clerie.de";
|
defaults.email = "letsencrypt@clerie.de";
|
||||||
acceptTerms = true;
|
acceptTerms = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user