Update Caddyfile
Browse files
Caddyfile
CHANGED
|
@@ -4,18 +4,9 @@
|
|
| 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 |
-
|
| 18 |
-
try_files {path} /index.html
|
| 19 |
-
file_server
|
| 20 |
}
|
| 21 |
}
|
|
|
|
| 4 |
}
|
| 5 |
|
| 6 |
:7860 {
|
|
|
|
| 7 |
respond /status "Caddy Proxy Active" 200
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
handle {
|
| 10 |
+
reverse_proxy localhost:3000
|
|
|
|
|
|
|
| 11 |
}
|
| 12 |
}
|