1
0
Fork 0

configuration/common: Tweak nginx default vhost

This commit is contained in:
clerie 2022-09-28 22:09:16 +02:00
parent 2cd917d56d
commit ac61842f29
1 changed files with 5 additions and 4 deletions

View File

@ -53,11 +53,14 @@
recommendedProxySettings = true; recommendedProxySettings = true;
recommendedTlsSettings = true; recommendedTlsSettings = true;
appendHttpConfig = ''
server_names_hash_bucket_size 64;
'';
virtualHosts = { virtualHosts = {
"default" = { "default" = {
default = true; default = true;
enableACME = true; rejectSSL = true;
addSSL = true;
locations."/" = { locations."/" = {
return = ''200 "Some piece of infrastructure\n"''; return = ''200 "Some piece of infrastructure\n"'';
extraConfig = '' extraConfig = ''
@ -68,8 +71,6 @@
}; };
}; };
clerie.akne.selfSignedOnlyHostNames = [ "default" ];
security.acme = { security.acme = {
defaults.email = "letsencrypt@clerie.de"; defaults.email = "letsencrypt@clerie.de";
acceptTerms = true; acceptTerms = true;