From b11823e74579efac66b8d5f7c1f06d4e55743901 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Fri, 3 Dec 2021 12:39:44 +0100 Subject: ilzfahrplan: static site till next season --- hosts/chaski/services/woitb.nix | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) (limited to 'hosts/chaski/services/woitb.nix') 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 ]; -- cgit v1.2.3