From 6d0d5aa759aad5b607674b29b830994cefb1ef8f Mon Sep 17 00:00:00 2001 From: Christian Krinitsin Date: Mon, 21 Apr 2025 20:40:52 +0200 Subject: remove flask-backend --- modules/webserver.nix | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'modules/webserver.nix') diff --git a/modules/webserver.nix b/modules/webserver.nix index ac95ddf..755a37a 100644 --- a/modules/webserver.nix +++ b/modules/webserver.nix @@ -10,14 +10,6 @@ enableACME = true; root = "/var/www/krinitsin.com"; serverAliases = [ "www.krinitsin.com" ]; - - locations."/shopping/".basicAuthFile = "/secret/shopping_auth"; - locations."/shopping/api/" = { - proxyPass = "http://127.0.0.1:5000"; - basicAuthFile = "/secret/shopping_auth"; - }; - - locations."/mensa/api/".proxyPass = "http://127.0.0.1:5000"; }; }; }; @@ -27,13 +19,7 @@ defaults.email = "christian@krinitsin.xyz"; }; - systemd.services.flask-backend = { - enable = true; - wantedBy = ["multi-user.target"]; - serviceConfig.ExecStart = ''/var/flask-backend/result/bin/app.py''; - }; - - networking.firewall.allowedTCPPorts = [ 80 443 5000 ]; + networking.firewall.allowedTCPPorts = [ 80 443 ]; services.monit.config = '' check process nginx with pidfile /var/run/nginx/nginx.pid -- cgit 1.4.1