diff options
Diffstat (limited to 'chaski/services')
-rw-r--r-- | chaski/services/bahnhof-name.nix | 17 |
1 files changed, 11 insertions, 6 deletions
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"]); } |