1
0

Do not use nginx
All checks were successful
Build and test project / build-and-test (push) Successful in 1m27s

This commit is contained in:
2026-03-19 22:13:43 +01:00
parent 9355da1796
commit 1d3e69dafd
2 changed files with 3 additions and 28 deletions

View File

@@ -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;
}
}
}

View File

@@ -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"