summaryrefslogtreecommitdiff
path: root/chaski
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--chaski/configuration.nix1
-rw-r--r--chaski/services/walint.nix22
2 files changed, 23 insertions, 0 deletions
diff --git a/chaski/configuration.nix b/chaski/configuration.nix
index fa51fdf..ee36e5a 100644
--- a/chaski/configuration.nix
+++ b/chaski/configuration.nix
@@ -13,6 +13,7 @@
./services/woitb.nix
./services/geolocation.nix
./services/gtfs.nix
+ ./services/walint.nix
];
networking.firewall.allowedTCPPorts = [ 80 443 ];
diff --git a/chaski/services/walint.nix b/chaski/services/walint.nix
new file mode 100644
index 0000000..0b17e22
--- /dev/null
+++ b/chaski/services/walint.nix
@@ -0,0 +1,22 @@
+{ config, lib, pkgs, inputs, ... }:
+
+{
+ systemd.services.walint = {
+ enable = true;
+ description = "test instance for walint & divoc";
+ wantedBy = [ "multi-user.target" ];
+ serviceConfig.Type = "simple";
+ path = [ pkgs.git ];
+ script = ''
+ cd ${(import inputs.walint).walint-server}
+ ./bin/walint-server
+ '';
+ };
+
+ services.nginx.virtualHosts."walint.stuebinm.eu" = {
+ locations."/".proxyPass = "http://localhost:8080";
+ enableACME = true;
+ forceSSL = true;
+ };
+
+}