Closed cyrneko closed 2 months ago
Sorry, I think the example config was wrong here, maybe something was off about my Docker setup when I tested it.
Could you try the changes in https://github.com/unmojang/drasl/pull/61 and see if that works? The main thing is changing the Caddyfile to try to communicate with the Drasl container at drasl:25585
and not just :25585
, which I believe fails because there is nothing listening on tcp/25585 on the Caddy container's internal network.
applied the change, same result it seems. I made sure to run docker compose up --force-recreate
just to be sure
relevant error:
{"level":"error","ts":1713499643.2489705,"logger":"http.log.error","msg":"dial tcp 172.20.0.2:25585: connect: connection refused","request":{"remote_ip":"100.90.39.45","remote_port":"59070","client_ip":"100.90.39.45","proto":"HTTP/1.1","method":"GET","host":"epic-server.faun-scala.ts.net","uri":"/favicon.ico","headers":{"Accept-Encoding":["gzip, deflate"],"Dnt":["1"],"Sec-Gpc":["1"],"Connection":["keep-alive"],"User-Agent":["Mozilla/5.0 (X11; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0"],"Accept":["image/avif,image/webp,*/*"],"Accept-Language":["en-US,en;q=0.5"],"Referer":["http://epic-server.faun-scala.ts.net/"]}},"duration":0.001390832,"status":502,"err_id":"8pc1mwrgp","err_trace":"reverseproxy.statusError (reverseproxy.go:1267)"}
(I don't think anything actually changed here)
Strange, it works for me now. I'm also using Tailscale. Docker 24.0.5 on NixOS. Here is my full config:
Maybe try ping the Drasl container from the Caddy container?
docker exec -it YOURCADDYCONTAINER ping drasl
works fine :woozy_face:
server@epic-server:~ ❯ docker exec -it 8c5bccad76a5 ping drasl
PING drasl (172.20.0.2): 56 data bytes
64 bytes from 172.20.0.2: seq=0 ttl=64 time=0.178 ms
64 bytes from 172.20.0.2: seq=1 ttl=64 time=0.092 ms
64 bytes from 172.20.0.2: seq=2 ttl=64 time=0.091 ms
^C
--- drasl ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.091/0.120/0.178 ms
Ok, in the Docker logs (or docker compose
output if you run it without -d
), does Drasl indicate that it's listening on ::25585
?
The ListenAddress
in Drasl's config should be kept as the default value, NOT 127.0.0.1:25585
.
update: this works?!
The ListenAddress in Drasl's config should be kept as the default value, NOT 127.0.0.1:25585.
oh, well, I must've misread the docs then. Thanks for your support! :)
Nice, no problem!
Yes, the docs are unclear on that, I'll add a change to the linked PR to clarify things. Leaving this issue open until #61 is merged.
Hey there!
I've recently found this project and wanted to try self-hosting it. I've followed the instructions in installation.md and configuration.md to get the sample docker-caddy configuration. I'm running this all over Tailscale. My files currently look like this:
docker-compose.yml
Caddyfile
config.toml
However, when I run
docker compose up
and look at the log,Caddy
returns an empty page because of the following error:I cannot for the life of me get Drasl to not refuse the connection from Caddy, and would like some help figuring out what the hell is going on as someone which only recently dabbled in hosting things like
Caddy