Need help with reverse proxy caddy.
I get an error while trying to confugure my reverse proxy on railway
Getting errros like : invalide response from http://hcn1.net/.well-known ...
And apparently i failed to configure dns on my domain
41 Replies
Project ID:
N/A
well lets see your caddyfile
Wait just a second
5ae38f48-1fba-45f4-8625-5c03d5b1a176
5ae38f48-1fba-45f4-8625-5c03d5b1a176
anyways
have you read any of the caddy docs?
no i watched two videos
for what version of caddy lol
2. something 😢
but show me your dockerfile now please
i gotta change that too?
dont know, show me first
remove second line
then youre good
what about from my dns?
look
i used
ping caddy---
🙂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
for ip address
to use it as a value
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
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
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
lmao