about summary refs log tree commit diff
path: root/nixos/tests/vikunja.nix
diff options
context:
space:
mode:
authorLeona Maroni <dev@leona.is>2024-02-19 23:27:56 +0100
committerLeona Maroni <dev@leona.is>2024-02-20 22:43:53 +0100
commit47b7eb8fd946cd4b8a62fc518147491479b5b925 (patch)
tree7e6b947e8447872c757a30fbb9a4818fcbfd9c33 /nixos/tests/vikunja.nix
parent8817f080cc87c78d2cfda682a49201a5fe0f2eb8 (diff)
nixos/vikunja: remove setupNginx option
The required nginx configuration is now really simple, and e.g. SSL/ACME
already required the user to interact with `services.nginx.virtualHosts`.
Therefore, and to reduce complexity, we now leave the web server
configuration to the user.
Diffstat (limited to 'nixos/tests/vikunja.nix')
-rw-r--r--nixos/tests/vikunja.nix14
1 files changed, 12 insertions, 2 deletions
diff --git a/nixos/tests/vikunja.nix b/nixos/tests/vikunja.nix
index 07d67f225a768..4e2bf166a7b6c 100644
--- a/nixos/tests/vikunja.nix
+++ b/nixos/tests/vikunja.nix
@@ -13,7 +13,12 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
         frontendScheme = "http";
         frontendHostname = "localhost";
       };
-      services.nginx.enable = true;
+      services.nginx = {
+        enable = true;
+        virtualHosts."http://localhost" = {
+          locations."/".proxyPass = "http://localhost:3456";
+        };
+      };
     };
     vikunjaPostgresql = { pkgs, ... }: {
       services.vikunja = {
@@ -37,7 +42,12 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
           }
         ];
       };
-      services.nginx.enable = true;
+      services.nginx = {
+        enable = true;
+        virtualHosts."http://localhost" = {
+          locations."/".proxyPass = "http://localhost:9090";
+        };
+      };
     };
   };