summaryrefslogtreecommitdiff
path: root/chaski
diff options
context:
space:
mode:
authorstuebinm2023-07-09 02:51:04 +0200
committerstuebinm2023-07-09 02:51:04 +0200
commit2c1225ff26a344476d4c99542a1b38cf054c6fd8 (patch)
tree85601db217750ec73321566040069e97283c7a28 /chaski
parent4d470bdddb533b7213baaec9de51d3b311b29208 (diff)
update bahnhof.name
Diffstat (limited to 'chaski')
-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"]);
}