diff options
author | stuebinm | 2021-12-03 12:39:44 +0100 |
---|---|---|
committer | stuebinm | 2021-12-03 12:39:44 +0100 |
commit | b11823e74579efac66b8d5f7c1f06d4e55743901 (patch) | |
tree | 49fe47eb139e22a750e81196688b3fa4a470bc14 /hosts/chaski/services | |
parent | c0644470ba39330b906920f84e160a94371847be (diff) |
ilzfahrplan: static site till next season
Diffstat (limited to '')
-rw-r--r-- | hosts/chaski/services/woitb.nix | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/hosts/chaski/services/woitb.nix b/hosts/chaski/services/woitb.nix index 303ec0f..a2d64a0 100644 --- a/hosts/chaski/services/woitb.nix +++ b/hosts/chaski/services/woitb.nix @@ -5,22 +5,28 @@ let sources = /home/stuebinm/Dokumente/utils/playground/ilztal/server; in { - systemd.services.woitb = { - enable = true; - description = "wo ist die ilztalbahn?"; - wantedBy = [ "multi-user.target" ]; - serviceConfig.type = "simple"; - script = "${import sources}/bin/woitb"; - }; + # systemd.services.woitb = { + # enable = true; + # description = "wo ist die ilztalbahn?"; + # wantedBy = [ "multi-user.target" ]; + # serviceConfig.type = "simple"; + # script = "${import sources}/bin/woitb"; + # }; + services.nginx.enable = true; services.nginx.virtualHosts."ilztal.live" = { enableACME = true; forceSSL = true; - locations."/".root = pkgs.copyPathToStore - /home/stuebinm/Dokumente/utils/playground/ilztal/site; + locations."/".root = pkgs.copyPathToStore ./woitb; + + # locations."/upnext".proxyPass = "http://localhost:8000"; + # locations."/geoloc".proxyPass = "http://localhost:8000"; + }; - locations."/upnext".proxyPass = "http://localhost:8000"; - locations."/geoloc".proxyPass = "http://localhost:8000"; + services.nginx.virtualHosts."track.ilztal.live" = { + enableACME = true; + forceSSL = true; + locations."/".root = pkgs.copyPathToStore /home/stuebinm/Dokumente/utils/tracktrain; }; networking.firewall.allowedTCPPorts = [ 80 443 ]; |