config.services.nginx.virtualHosts.<name>.enableSSL is deprecated
This commit is contained in:
rodič
e2fcf2d39e
revize
a0a49e1e7e
|
@ -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;
|
||||
|
|
Načítá se…
Odkázat v novém úkolu