···5959 # use `handle` instead of `handle_path` if you dont want to strip the /api/ path
6060 # this is needed if your backend's api routes don't start with /api/
6161 # change paths as needed
6262- handle_path {$BACKEND_PATH:/api}/* {
6262+ handle {$BACKEND_PATH:/api}/* {
6363 # the /api/ prefix WILL be stripped from the uri sent to the proxy host
6464 #
6565 # proxy all requests for /api/* to the backend, configure this variable in the service settings
+2
README.md
···11# [Caddy](https://caddyserver.com/) Frontend & Backend Reverse Proxy
2233+>soft fork to change `handle_path` to `handle`. Original is found at https://github.com/railwayapp-templates/caddy-reverse-proxy
44+35**Combine your separate frontend and backend services into one domain!**
4657### [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