whoareu
- 3 Posts
- 3 Comments
Joined 2 years ago
Cake day: June 4th, 2023
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
whoareu@lemmy.caOPto Selfhosted@lemmy.world•[SOLVED] How to forward real IP from Caddy server?English2·4 days agook I tried to add those two in my Caddyfile:
ac.ghodawalaaman.duckdns.org { reverse_proxy http://localhost:4000/ { header_up X-Forwarded-Host {host} header_up X-Forwarded-For {host} header_up X-Real-IP {host} } }
here is the output of a request.
2025/04/16 15:52:17.005 WARN http.handlers.reverse_proxy aborting with incomplete response {"upstream": "localhost:4000", "duration": 0.000995717, "request": {"remote_ip": "103.250.137.61", "remote_port": "19389", "client_ip": "103.250.137.61", "proto": "HTTP/3.0", "method": "GET", "host": "ac.ghodawalaaman.duckdns.org", "uri": "/static/vite_dist/assets/Roboto-Light-DHTugVNA.woff2", "headers": {"User-Agent": ["Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0"], "Sec-Fetch-Dest": ["font"], "Accept-Encoding": ["identity"], "Cookie": ["REDACTED"], "Sec-Fetch-Mode": ["cors"], "Accept": ["application/font-woff2;q=1.0,application/font-woff;q=0.9,*/*;q=0.8"], "Accept-Language": ["en-US,en;q=0.5"], "X-Forwarded-For": ["ac.ghodawalaaman.duckdns.org"], "X-Real-Ip": ["ac.ghodawalaaman.duckdns.org"], "Sec-Fetch-Site": ["same-origin"], "Alt-Used": ["ac.ghodawalaaman.duckdns.org"], "X-Forwarded-Host": ["ac.ghodawalaaman.duckdns.org"], "X-Forwarded-Proto": ["https"], "Referer": ["https://ac.ghodawalaaman.duckdns.org/static/vite_dist/assets/Layout-Cv860oWs.css"]}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h3", "server_name": "ac.ghodawalaaman.duckdns.org"}}, "error": "writing: H3_REQUEST_CANCELLED"}
I also tried this but it didn’t work either:
ac.ghodawalaaman.duckdns.org { log { output file ./azuracast.log format json } reverse_proxy http://localhost:4000/ { header_up X-Forwarded-For {request.remote} header_up X-Real-IP {request.remote} } }
here is the azuracast.log: https://0x0.st/8fd7.bin
I am still very confused why it’s not working…
yes, I agree, however if I can show them that Whatsapp is not letting me create an account they will be more sympathetic to me and would use Signal or any other privacy focused alternatives. but to achive that I have to make Whatsapp to not let me create an account.
yes you are right, I asked it in Azuracast discord server and they said I have to manually enable “reverse proxy” option.
Thank you so much for helping me <3