summaryrefslogtreecommitdiff
path: root/hosts/chaski/services/woitb.nix
diff options
context:
space:
mode:
authorstuebinm2021-12-03 12:39:44 +0100
committerstuebinm2021-12-03 12:39:44 +0100
commitb11823e74579efac66b8d5f7c1f06d4e55743901 (patch)
tree49fe47eb139e22a750e81196688b3fa4a470bc14 /hosts/chaski/services/woitb.nix
parentc0644470ba39330b906920f84e160a94371847be (diff)
ilzfahrplan: static site till next season
Diffstat (limited to 'hosts/chaski/services/woitb.nix')
-rw-r--r--hosts/chaski/services/woitb.nix28
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 ];