Browse Source

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

storage-ng
Emery Hemingway 11 months ago
parent
commit
a0a49e1e7e

+ 5
- 9
hosts/containers/prometheus/configuration.nix View File

@@ -88,22 +88,18 @@
88 88
 
89 89
   services.nginx = {
90 90
     enable = true;
91
-    
91
+
92 92
     virtualHosts."prometheus.serv.zentralwerk.org" = {
93
-    # serverAliases = [ "registry.serv.zentralwerk.org" ];
93
+      # serverAliases = [ "registry.serv.zentralwerk.org" ];
94 94
       enableACME = true;
95
-      enableSSL = true;
96
-      # forceSSL = true;
95
+      onlySSL = true;
97 96
       locations.".well-known/acme-challenge/" = {
98
-            root = "/var/lib/acme/acme-challenge/.well-known/acme-challenge/";
99
-      };
100
-      locations."/" = {
101
-            proxyPass = "http://localhost:9090";
97
+        root = "/var/lib/acme/acme-challenge/.well-known/acme-challenge/";
102 98
       };
99
+      locations."/" = { proxyPass = "http://localhost:9090"; };
103 100
     };
104 101
   };
105 102
 
106
-
107 103
   system.stateVersion = "19.03"; # Did you read the comment?
108 104
 
109 105
 }

+ 3
- 6
hosts/containers/registry/configuration.nix View File

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

Loading…
Cancel
Save