Compare commits

...

2 Commits

Author SHA1 Message Date
josh 95b43dceec Merge pull request 'Fix health check 404: add /api/health route, remove nginx /health proxy' (#7) from feature/auth-invites into main
CI / build-and-push (push) Successful in 1m13s
Reviewed-on: #7
2026-04-27 20:29:51 -04:00
josh 65afa886af Fix health check 404: add /api/health route, remove nginx /health proxy
Frontend API_BASE is /api in production, so health check was hitting
/api/health which didn't exist. Added /api/health on the server and
removed the now-unnecessary separate nginx /health proxy rule.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-27 20:22:00 -04:00
2 changed files with 1 additions and 4 deletions
+1
View File
@@ -26,6 +26,7 @@ app.use('*', cors({
})); }));
app.get('/health', (c) => c.json({ status: 'ok', version: '0.1.0' })); app.get('/health', (c) => c.json({ status: 'ok', version: '0.1.0' }));
app.get('/api/health', (c) => c.json({ status: 'ok', version: '0.1.0' }));
app.get('/api/config', (c) => c.json({ app.get('/api/config', (c) => c.json({
requireInvite: process.env.REQUIRE_INVITE !== 'false', requireInvite: process.env.REQUIRE_INVITE !== 'false',
-4
View File
@@ -10,10 +10,6 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
} }
location /health {
proxy_pass http://server:3001;
}
location / { location / {
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html;
} }