From e515212708dc244d61c47148956b86c74829c950 Mon Sep 17 00:00:00 2001 From: clerie Date: Sat, 9 Sep 2023 14:13:58 +0200 Subject: [PATCH] hosts/web-2: deactive wetter.clerie.de because it requires nodejs that takes ages to build --- hosts/web-2/wetter.nix | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/hosts/web-2/wetter.nix b/hosts/web-2/wetter.nix index 72e586e..bbbb582 100644 --- a/hosts/web-2/wetter.nix +++ b/hosts/web-2/wetter.nix @@ -64,27 +64,31 @@ in { ]; }; - systemd.services.wetter = { - wantedBy = [ "multi-user.target" ]; - serviceConfig = { - RuntimeDirectory = "wetter"; - StateDirectory = "wetter"; - User = "wetter_web"; - Group = "wetter_web"; - }; - environment = { - WETTER_SETTINGS = "${configFile}"; - }; - script = "gunicorn -w 4 -b [::1]:8234 wetter:app"; - path = with pkgs; [ (python3.withPackages (ps: [ ps.gunicorn wetter ])) ]; - }; +# systemd.services.wetter = { +# wantedBy = [ "multi-user.target" ]; +# serviceConfig = { +# RuntimeDirectory = "wetter"; +# StateDirectory = "wetter"; +# User = "wetter_web"; +# Group = "wetter_web"; +# }; +# environment = { +# WETTER_SETTINGS = "${configFile}"; +# }; +# script = "gunicorn -w 4 -b [::1]:8234 wetter:app"; +# path = with pkgs; [ (python3.withPackages (ps: [ ps.gunicorn wetter ])) ]; +# }; services.nginx.virtualHosts = { "wetter.clerie.de" = { enableACME = true; forceSSL = true; locations."/" = { - proxyPass = "http://[::1]:8234"; + #proxyPass = "http://[::1]:8234"; + return = ''200 "wetter.clerie.de is currently offline, find source code on https://git.clerie.de/clerie/wetter\n"''; + extraConfig = '' + types { } default_type "text/plain; charset=utf-8"; + ''; }; }; };