Tom716 commited on
Commit
dbc30ff
·
verified ·
1 Parent(s): 19b12aa

Update Caddyfile

Browse files
Files changed (1) hide show
  1. Caddyfile +7 -6
Caddyfile CHANGED
@@ -1,20 +1,21 @@
1
  {
2
- # Enable internal Admin API for dynamic route updates
3
  admin localhost:2019
4
  auto_https off
5
  }
6
 
7
  :7860 {
8
- # Health check endpoint
9
  respond /status "Caddy Proxy Active" 200
10
 
11
- # Route /api/* to NestJS Backend
12
  handle /api/* {
13
  reverse_proxy localhost:3000
14
  }
15
 
16
- # Route /wa/* to WhatsApp Baileys Service
17
- handle /wa/* {
18
- reverse_proxy localhost:3001
 
 
19
  }
20
  }
 
1
  {
 
2
  admin localhost:2019
3
  auto_https off
4
  }
5
 
6
  :7860 {
7
+ # Better Stack keep-alive health check
8
  respond /status "Caddy Proxy Active" 200
9
 
10
+ # Route backend REST requests to NestJS on port 3000
11
  handle /api/* {
12
  reverse_proxy localhost:3000
13
  }
14
 
15
+ # Serve compiled React SPA static assets from the project subfolder
16
+ handle {
17
+ root * /app/projects/telegram-send-demo/frontend/dist
18
+ try_files {path} /index.html
19
+ file_server
20
  }
21
  }