config.services.nginx.virtualHosts.<name>.enableSSL is deprecated

This commit is contained in:
Emery Hemingway 2019-11-09 14:39:50 +01:00
父節點 e2fcf2d39e
當前提交 a0a49e1e7e
共有 2 個檔案被更改,包括 8 行新增15 行删除

查看文件

@ -88,22 +88,18 @@
services.nginx = {
enable = true;
virtualHosts."prometheus.serv.zentralwerk.org" = {
# serverAliases = [ "registry.serv.zentralwerk.org" ];
# serverAliases = [ "registry.serv.zentralwerk.org" ];
enableACME = true;
enableSSL = true;
# forceSSL = true;
onlySSL = true;
locations.".well-known/acme-challenge/" = {
root = "/var/lib/acme/acme-challenge/.well-known/acme-challenge/";
};
locations."/" = {
proxyPass = "http://localhost:9090";
root = "/var/lib/acme/acme-challenge/.well-known/acme-challenge/";
};
locations."/" = { proxyPass = "http://localhost:9090"; };
};
};
system.stateVersion = "19.03"; # Did you read the comment?
}

查看文件

@ -63,14 +63,11 @@
services.nginx.virtualHosts."registry.hq.c3d2.de" = {
# serverAliases = [ "registry.serv.zentralwerk.org" ];
enableACME = true;
enableSSL = true;
# forceSSL = true;
onlySSL = true;
locations.".well-known/acme-challenge/" = {
root = "/var/lib/acme/acme-challenge/.well-known/acme-challenge/";
};
locations."/" = {
proxyPass = "http://localhost:5000";
root = "/var/lib/acme/acme-challenge/.well-known/acme-challenge/";
};
locations."/" = { proxyPass = "http://localhost:5000"; };
extraConfig = ''
client_max_body_size 4096M;
gzip off;