more unit testing
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 1m36s

This commit is contained in:
2025-11-22 15:24:53 -08:00
parent 0b6d89304b
commit 6e4127895a
2 changed files with 16 additions and 0 deletions

View File

@@ -20,6 +20,20 @@ server {
try_files $uri $uri/ /index.html;
}
# This new block is the reverse proxy for your backend API.
# It tells Nginx that any request starting with /api/ should be
# forwarded to your Node.js server running on port 3001.
location /api/ {
# The trailing slash on the proxy_pass URL is crucial.
# It tells Nginx to strip the `/api/` prefix from the request URI
# before passing it to the backend server.
proxy_pass http://localhost:3001/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
# This block specifically targets requests for .mjs files.
location ~ \.mjs$ {