diff options
Diffstat (limited to 'modules/webserver.nix')
| -rw-r--r-- | modules/webserver.nix | 16 |
1 files changed, 1 insertions, 15 deletions
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 |