How can I apply to reverse-proxy setting on Caddyfile?

1. The problem I’m having:

i deployed front and back on the railway
now, backend(React App) is correctly called. however, frontend( isn’t correctly called

2. Error messages and/or full log output:

it hasn’t error message on the console but not working correctly

3. Caddy version: CADDY_VERSION = ‘2.7.4’

4. How I installed and ran Caddy:

I installed caddy on the, it contains Caddyfile on the react root folder.

a. System environment:

railway cloud.

b. Command:

I added Caddyfile to below scripts { route { reverse_proxy /api/* try_files {path} /index.html file_server } }

now, To show presently deployed project status, visit
if you refer to my dns settings. just click below it.

thank you for your interesting. so I prey for reply.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.