mrCunningham
mrCunningham
RRailway
Created by mrCunningham on 8/2/2024 in #✋|help
Failed To wipe volume
@Percy can i get some visibility on this?
5 replies
RRailway
Created by mrCunningham on 8/2/2024 in #✋|help
Failed To wipe volume
here is the response on the volumeWipe mutation { "errors": [ { "message": "Problem processing request", "traceId": "8391859516816125400" } ], "data": null }
5 replies
RRailway
Created by mrCunningham on 8/2/2024 in #✋|help
Failed To wipe volume
can i get some help on this?
5 replies
RRailway
Created by JohnC on 3/1/2024 in #✋|help
Just updated codebase but no new deployments
e649edf0-e7e9-4b6d-8516-8155a5adf4a2
17 replies
RRailway
Created by JohnC on 3/1/2024 in #✋|help
Just updated codebase but no new deployments
Same problem here
17 replies
RRailway
Created by mrCunningham on 9/21/2023 in #✋|help
Caddy as separate service
i guess im confused. the two urls i sent you are for the caddy-proxy. they are both pointing to the same frontend deployment. why would the frontend matter at all? on the generated url, its pointing to the newest deployment while the custom domain is from a previous deployment.
101 replies
RRailway
Created by mrCunningham on 9/21/2023 in #✋|help
Caddy as separate service
yes
101 replies
RRailway
Created by mrCunningham on 9/21/2023 in #✋|help
Caddy as separate service
it appears that the caddy-proxy on the custom domain is caching the old frontend
101 replies
RRailway
Created by mrCunningham on 9/21/2023 in #✋|help
Caddy as separate service
here is the generated domain: https://caddy-proxy-staging.up.railway.app and the custom domain: https://staging.portal.viewrail.com
101 replies
RRailway
Created by mrCunningham on 9/21/2023 in #✋|help
Caddy as separate service
further looking into this, i had the caddy-proxy generate a domain on railway and that generated domain works fine
101 replies
RRailway
Created by mrCunningham on 9/21/2023 in #✋|help
Caddy as separate service
but the url for the frontend renders just fine? should be pointing to the same thing
101 replies
RRailway
Created by mrCunningham on 9/21/2023 in #✋|help
Caddy as separate service
{ # global options
admin off # theres no need for the admin api in railway's environment
persist_config off # storage isn't persistent anyway
auto_https off # railway handles https for us, this would cause issues if left enabled
log { # runtime logs
format console # set runtime log format to console mode
}
servers { # server options
trusted_proxies static private_ranges # trust railway's proxy
}
}

:{$PORT} { # site block, listens on the $PORT environment variable, automatically assigned by railway
log { # access logs
format console # set access log format to console mode
}

reverse_proxy {$FRONTEND_HOST} # proxy all requests for /* to the frontend, configure this variable in the service settings


# the handle_path directive will strip /api/ from the path before proxying
# this is needed if your backend's api routes don't start with /api/
# change paths as needed

handle_path /api/* { # this strips the /api/ prefix from the uri sent to the proxy address
reverse_proxy {$BACKEND_HOST} # proxy all requests for /api/* to the backend, configure this variable in the service settings
}

# if your backend's api routes do start with /api/ then you wouldn't want to strip the path prefix
# if so, comment out the above handle_path block, and uncomment this reverse_proxy directive
# change paths as needed
# reverse_proxy {$BACKEND_HOST} # configure this variable in the service settings
}
{ # global options
admin off # theres no need for the admin api in railway's environment
persist_config off # storage isn't persistent anyway
auto_https off # railway handles https for us, this would cause issues if left enabled
log { # runtime logs
format console # set runtime log format to console mode
}
servers { # server options
trusted_proxies static private_ranges # trust railway's proxy
}
}

:{$PORT} { # site block, listens on the $PORT environment variable, automatically assigned by railway
log { # access logs
format console # set access log format to console mode
}

reverse_proxy {$FRONTEND_HOST} # proxy all requests for /* to the frontend, configure this variable in the service settings


# the handle_path directive will strip /api/ from the path before proxying
# this is needed if your backend's api routes don't start with /api/
# change paths as needed

handle_path /api/* { # this strips the /api/ prefix from the uri sent to the proxy address
reverse_proxy {$BACKEND_HOST} # proxy all requests for /api/* to the backend, configure this variable in the service settings
}

# if your backend's api routes do start with /api/ then you wouldn't want to strip the path prefix
# if so, comment out the above handle_path block, and uncomment this reverse_proxy directive
# change paths as needed
# reverse_proxy {$BACKEND_HOST} # configure this variable in the service settings
}
101 replies
RRailway
Created by mrCunningham on 9/21/2023 in #✋|help
Caddy as separate service
the caddyfile for the react frontend or for the proxy
101 replies
RRailway
Created by mrCunningham on 9/21/2023 in #✋|help
Caddy as separate service
101 replies
RRailway
Created by mrCunningham on 9/21/2023 in #✋|help
Caddy as separate service
those are the variables my caddy is using correct
101 replies
RRailway
Created by mrCunningham on 9/21/2023 in #✋|help
Caddy as separate service
yup
101 replies
RRailway
Created by mrCunningham on 9/21/2023 in #✋|help
Caddy as separate service
but it is loading the old version of the frontend, when i go directly to the frontend_host it works fine
101 replies
RRailway
Created by mrCunningham on 9/21/2023 in #✋|help
Caddy as separate service
i have my caddy proxy env like this BACKEND_HOST=${{CustomerPortal.RAILWAY_PRIVATE_DOMAIN}}:${{CustomerPortal.PORT}} FRONTEND_HOST=${{CustomerPortal-FE.RAILWAY_PRIVATE_DOMAIN}}:${{CustomerPortal-FE.PORT}}
101 replies
RRailway
Created by mrCunningham on 9/21/2023 in #✋|help
Caddy as separate service
when i have this in two different environments, will having the FRONTEND_HOST and BACKEND_HOST point to the specific environment?
101 replies
RRailway
Created by mrCunningham on 9/29/2023 in #✋|help
Failed to install caddy
thanks that worked
9 replies