1
0

hosts/web-2: deactive wetter.clerie.de because it requires nodejs that takes ages to build

This commit is contained in:
clerie 2023-09-09 14:13:58 +02:00
parent b0259542e4
commit e515212708

View File

@ -64,27 +64,31 @@ in {
]; ];
}; };
systemd.services.wetter = { # systemd.services.wetter = {
wantedBy = [ "multi-user.target" ]; # wantedBy = [ "multi-user.target" ];
serviceConfig = { # serviceConfig = {
RuntimeDirectory = "wetter"; # RuntimeDirectory = "wetter";
StateDirectory = "wetter"; # StateDirectory = "wetter";
User = "wetter_web"; # User = "wetter_web";
Group = "wetter_web"; # Group = "wetter_web";
}; # };
environment = { # environment = {
WETTER_SETTINGS = "${configFile}"; # WETTER_SETTINGS = "${configFile}";
}; # };
script = "gunicorn -w 4 -b [::1]:8234 wetter:app"; # script = "gunicorn -w 4 -b [::1]:8234 wetter:app";
path = with pkgs; [ (python3.withPackages (ps: [ ps.gunicorn wetter ])) ]; # path = with pkgs; [ (python3.withPackages (ps: [ ps.gunicorn wetter ])) ];
}; # };
services.nginx.virtualHosts = { services.nginx.virtualHosts = {
"wetter.clerie.de" = { "wetter.clerie.de" = {
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
locations."/" = { 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";
'';
}; };
}; };
}; };