From 2c1225ff26a344476d4c99542a1b38cf054c6fd8 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Sun, 9 Jul 2023 02:51:04 +0200 Subject: update bahnhof.name --- chaski/services/bahnhof-name.nix | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'chaski/services/bahnhof-name.nix') diff --git a/chaski/services/bahnhof-name.nix b/chaski/services/bahnhof-name.nix index e0e2988..9c0b6e2 100644 --- a/chaski/services/bahnhof-name.nix +++ b/chaski/services/bahnhof-name.nix @@ -7,13 +7,18 @@ serviceConfig.Type = "simple"; path = [ pkgs.bahnhof-name ]; script = '' - bahnhofname + cd ${pkgs.bahnhof-name.outPath} + bin/bahnhofname ''; }; - services.nginx.virtualHosts."bahnhof.name" = { - enableACME = true; - forceSSL = true; - locations."/".proxyPass = "http://localhost:2345"; - }; + services.nginx.virtualHosts = + let vhost = { + enableACME = true; + forceSSL = true; + locations."/".proxyPass = "http://localhost:2345"; + }; in builtins.listToAttrs + (map (name: { inherit name; value = vhost; }) + ["bahnhof.name" "ril100.bahnhof.name" + "ds100.bahnhof.name" "leitpunkt.bahnhof.name"]); } -- cgit v1.2.3