Commit 220b9d8
committed
fix: register infinite loading behind reverse proxy
- Add app.set('trust proxy', 1) in Express to fix ERR_ERL_UNEXPECTED_X_FORWARDED_FOR
error thrown by express-rate-limit when deployed behind Nginx
- Add ARG/ENV VITE_API_URL and VITE_WS_URL in client/Dockerfile so Docker
build args from docker-compose.yml are properly injected into the Vite bundle
(previously fell back to hardcoded http://localhost:3001)1 parent bb5e730 commit 220b9d8
2 files changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
0 commit comments