l websites util: make ssl optional again

This commit is contained in:
lassulus 2018-05-14 22:20:08 +02:00
parent 3fc6ff613f
commit efb7452a0c

View File

@ -16,7 +16,7 @@ rec {
in {
services.nginx.virtualHosts.${domain} = {
enableACME = true;
forceSSL = true;
addSSL = true;
serverAliases = domains;
locations."/".extraConfig = ''
root /srv/http/${domain};
@ -83,7 +83,7 @@ rec {
in {
services.nginx.virtualHosts."${domain}" = {
enableACME = true;
forceSSL = true;
addSSL = true;
serverAliases = domains;
extraConfig = ''
# Add headers to serve security related headers
@ -194,7 +194,7 @@ rec {
in {
services.nginx.virtualHosts."${domain}" = {
enableACME = true;
forceSSL = true;
addSSL = true;
serverAliases = domains;
extraConfig = ''
root /srv/http/${domain}/;