+1
-1
Caddyfile
+1
-1
Caddyfile
···
59
59
# use `handle` instead of `handle_path` if you dont want to strip the /api/ path
60
60
# this is needed if your backend's api routes don't start with /api/
61
61
# change paths as needed
62
-
handle_path {$BACKEND_PATH:/api}/* {
62
+
handle {$BACKEND_PATH:/api}/* {
63
63
# the /api/ prefix WILL be stripped from the uri sent to the proxy host
64
64
#
65
65
# proxy all requests for /api/* to the backend, configure this variable in the service settings
+2
README.md
+2
README.md
···
1
1
# [Caddy](https://caddyserver.com/) Frontend & Backend Reverse Proxy
2
2
3
+
>soft fork to change `handle_path` to `handle`. Original is found at https://github.com/railwayapp-templates/caddy-reverse-proxy
4
+
3
5
**Combine your separate frontend and backend services into one domain!**
4
6
5
7
### [View the example public project here](https://railway.app/project/35d8d571-4313-4049-9699-4e7db7f02a2f) - Utilizes sleeping frontend and backend services with wake via the private network