Commit b76e41695f1c

Vincent Demeester <vincent@sbr.pm>
2022-04-15 14:14:07
systems: proxyify the webhook
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 84aae5d
Changed files (2)
systems/hosts/kerkouane.nix
@@ -189,6 +189,17 @@ in
           '';
         };
       };
+      virtualHosts."webhook.sbr.pm" = {
+        enableACME = true;
+        forceSSL = true;
+        locations."/" = {
+          proxyPass = "http://10.100.0.8:80";
+          extraConfig = ''
+            proxy_set_header Host            $host;
+            proxy_set_header X-Forwarded-For $remote_addr;
+          '';
+        };
+      };
       virtualHosts."sbr.pm" = {
         enableACME = true;
         forceSSL = true;
systems/hosts/wakasu.nix
@@ -100,8 +100,6 @@ in
       recommendedTlsSettings = true;
       recommendedOptimisation = true;
       virtualHosts."whoami.sbr.pm" = {
-        enableACME = true;
-        forceSSL = true;
         locations."/" = {
           proxyPass = "http://192.168.1.187:80";
           extraConfig = ''
@@ -110,6 +108,16 @@ in
           '';
         };
       };
+      virtualHosts."webhook.sbr.pm" = {
+        # listen = [{ port = 8080; }];
+        locations."/" = {
+          proxyPass = "http://192.168.1.188:8080";
+          extraConfig = ''
+            proxy_set_header Host            $host;
+            proxy_set_header X-Forwarded-For $remote_addr;
+          '';
+        };
+      };
     };
   };