From 1d3e69dafd6f4549cb7e13748cc05ccd8913eadf Mon Sep 17 00:00:00 2001 From: Nico Verbruggen Date: Thu, 19 Mar 2026 22:13:43 +0100 Subject: [PATCH] Do not use nginx --- nginx.conf.template | 26 -------------------------- nixpacks.toml | 5 +++-- 2 files changed, 3 insertions(+), 28 deletions(-) delete mode 100644 nginx.conf.template diff --git a/nginx.conf.template b/nginx.conf.template deleted file mode 100644 index 1771495..0000000 --- a/nginx.conf.template +++ /dev/null @@ -1,26 +0,0 @@ -worker_processes auto; -error_log stderr; -pid /tmp/nginx.pid; - -events { - worker_connections 1024; -} - -http { - include /etc/nginx/mime.types; - default_type application/octet-stream; - access_log off; - sendfile on; - gzip on; - gzip_types text/html text/css application/javascript application/json application/wasm; - - server { - listen ${PORT} default_server; - root web/dist; - index index.html; - - location / { - try_files $uri $uri/ /index.html; - } - } -} diff --git a/nixpacks.toml b/nixpacks.toml index 9c27107..cb561ee 100644 --- a/nixpacks.toml +++ b/nixpacks.toml @@ -1,7 +1,7 @@ providers = ["node"] [phases.setup] -nixPkgs = ["git", "curl", "zip", "gnutar", "nginx"] +nixPkgs = ["git", "curl", "zip", "gnutar", "nginx", "nodejs", "gettext"] paths = ["/usr/local/go/bin"] [phases.build] @@ -13,4 +13,5 @@ cmds = [ ] [start] -cmd = "envsubst '${PORT}' < nginx.conf.template > /tmp/nginx.conf && exec nginx -c /tmp/nginx.conf -g 'daemon off;'" +# TODO: replace simple python server with something better +cmd = "python3 -m http.server ${PORT:-8080} -d web/dist"