summaryrefslogtreecommitdiff
path: root/chaski/services
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--chaski/services/bahnhof-name.nix17
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"]);
}