diff options
| author | Christian Krinitsin <mail@krinitsin.com> | 2025-04-21 20:40:52 +0200 |
|---|---|---|
| committer | Christian Krinitsin <mail@krinitsin.com> | 2025-04-21 20:40:52 +0200 |
| commit | 6d0d5aa759aad5b607674b29b830994cefb1ef8f (patch) | |
| tree | e3e0cec889dbd8b7f21a91f8130f2f5804e27a07 /modules/webserver.nix | |
| parent | b95252d98db6e34533424a82dd17017b86f5d515 (diff) | |
| download | nosix-6d0d5aa759aad5b607674b29b830994cefb1ef8f.tar.gz nosix-6d0d5aa759aad5b607674b29b830994cefb1ef8f.zip | |
remove flask-backend
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 |