#Need help with reverse proxy caddy.
62 messages · Page 1 of 1 (latest)
Project ID: N/A
well lets see your caddyfile
Wait just a second
have you read any of the caddy docs?
no i watched two videos
for what version of caddy lol
- something 😢
i gotta change that too?
dont know, show me first
well you would need to remove that custom domain from whatever railway service it used to be on, and move it to the daddy service, and then youd get a new cname to use, but dont do that yet, just use the railway domain until you have it working
dont know what thats for
may i tag you if i encounter any issue?
dont do that, use cnames, but again, just use the railway domain until you have it working
nope, just send a message here, i have eyes after all
alright i got it
no problem thank you brody u so helpful
{"level":"error","ts":1689279176.6590822,"logger":"http.log.error","msg":"dial firebase-database-production.up.railway.app: unknown network firebase-database-production.up.railway.app","request":{"remote_ip":"192.168.0.4","remote_port":"35726","proto":"HTTP/1.1","method":"GET","host":"caddy-production-9488.up.railway.app","uri":"/api/v1/user","headers":{"X-Forwarded-For":["105.235.132.85"],"X-Envoy-External-Address":["105.235.132.85"],"X-Request-Id":["d991c868-3ef3-4e9d-bf35-97f2330bd4b5"],"Accept-Encoding":["gzip, deflate"],"X-Forwarded-Proto":["https"],"User-Agent":["python-requests/2.28.1"],"Accept":["/"]}},"duration":0.00034462,"status":502,"err_id":"n8q2v8hur","err_trace":"reverseproxy.statusError (reverseproxy.go:1299)"}
after trying billions of configs
and reading dos
this is still the error
show me your current caddyfile
wait
reverse_proxy /api/v1/user firebase-database-production.up.railway.app/api/v1/user:80```
last one used and made some sense
i like how you havent even used the starter i gave you
i used it swear to god but same issue
returns ""
still though
man i used it
and it kepts making errors i am sorry
if u read logs
somehow it can't resolve ip address to reverse to that server
this is the log
this is the website and return
this is what it shall be
alright and how did u do that
{
auto_https off
}
:{$PORT} {
reverse_proxy /api/v1/user https://firebase-database-production.up.railway.app {
header_up Host {upstream_hostport}
}
}
thank you i'll try itt
thank youuuuuuuu brody it is somehow working
thank you so much
i read the docs
me too
cap
🥹 i was gonna vote for you whenever there is some event of something
i changed my mind