···22{
33 admin off # theres no need for the admin api in railway's environment
44 persist_config off # storage isn't persistent anyway
55- auto_https off # railway handles https for us, this would cause issues if left enabled
55+ auto_https off # railway handles https for us, this could in some cases cause issues if left enabled
66 # runtime logs
77 log {
88 format json # set runtime log format to json mode
···22222323 reverse_proxy {$FRONTEND_HOST} # proxy all requests for /* to the frontend, configure this variable in the service settings
24242525- # the handle_path directive will strip /api/ from the path before proxying
2525+ # the handle_path directive WILL strip /api/ from the path before proxying
2626 # this is needed if your backend's api routes don't start with /api/
2727 # change paths as needed
2828 handle_path /api/* {
2929- # this strips the /api/ prefix from the uri sent to the proxy address
2929+ # the /api/ prefix WILL be stripped from the uri sent to the proxy host
3030 reverse_proxy {$BACKEND_HOST} # proxy all requests for /api/* to the backend, configure this variable in the service settings
3131 }
32323333+ # this handle directive will NOT strip /api/ from the path before proxying
3334 # if your backend's api routes do start with /api/ then you wouldn't want to strip the path prefix
3434- # if so, comment out the above handle_path block, and uncomment this reverse_proxy directive
3535+ # if so, comment out the above handle_path and reverse_proxy directives, and uncomment these handle and reverse_proxy directives
3536 # change paths as needed
3636- # reverse_proxy {$BACKEND_HOST} # configure this variable in the service settings
3737+ # handle /api/* {
3838+ # the /api/ prefix will NOT be stripped from the uri sent to the proxy host
3939+ # reverse_proxy {$BACKEND_HOST} # proxy all requests for /api/* to the backend, configure this variable in the service settings
4040+ # }
3741}