diff options
author | stuebinm | 2022-06-10 21:56:50 +0200 |
---|---|---|
committer | stuebinm | 2022-06-11 00:34:12 +0200 |
commit | 0c3e2c500d181c673f0563e6f5bee49729f49b73 (patch) | |
tree | e420fc94017be9f74b80e11efaab4555ff2f57d2 /chaski/services/gtfs.nix | |
parent | b7f43b7b41770016b82faca4fc918c5ec60791df (diff) |
add tracktrain test deployment
Diffstat (limited to '')
-rw-r--r-- | chaski/services/gtfs.nix | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/chaski/services/gtfs.nix b/chaski/services/gtfs.nix deleted file mode 100644 index 61837a1..0000000 --- a/chaski/services/gtfs.nix +++ /dev/null @@ -1,38 +0,0 @@ -{ config, lib, pkgs, ... }: - -let - vaas = import ./VaaS/default.nix {inherit pkgs; }; - - transitfeed = pkgs.fetchFromGitHub { - owner = "google"; - repo = "transitfeed"; - rev = "d727e97cb66ac2ca2d699a382ea1d449ee26c2a1"; - sha256 = "0kmcmdja6h7gzvi40c9qfzxh6qwv5184g2rgpqx5rhj4ql9ini3h"; - }; - - index = pkgs.copyPathToStore ./VaaS/index.html; -in -{ - systemd.services.vaas = { - enable = true; - wantedBy = [ "multi-user.target" ]; - after = [ "network.target" ]; - description = "GTFS feed validator as a service"; - path = [ pkgs.python2 pkgs.python2Packages.pytz pkgs.python2Packages.enum34 ]; - serviceConfig = { - ExecStart = "${vaas}/bin/VaaS ${transitfeed}/feedvalidator.py ${index}"; - Restart = "always"; - PrivateTmp = "true"; - PrivateDevices = "true"; - ProtectSystem = "strict"; - ReadWritePaths = [ "/tmp" ]; - }; - - }; - - services.nginx.virtualHosts."gtfs.stuebinm.eu" = { - enableACME = true; - forceSSL = true; - locations."/".proxyPass = "http://localhost:7000"; - }; -} |