1. Output of caddy version
:
v2.3.0
2. How I run Caddy:
Running caddy as a reverse proxy in the system environment with a Caddyfile.
a. System environment:
Currently testing using a replit bash repl (which I don’t know too much about), but in production, I’ll use another hosting platform.
b. Command:
./caddy run
c. Service/unit/compose file:
N/A
Don't think I have one
d. My complete Caddy config:
go.example.org:80, go.example.org:443 {
reverse_proxy 172.96.140.17:25697
}
3. The problem I’m having:
A compiled version of Minecraft’s client that is run in a browser uses WebSocket protocols (specifically wss) and my reverse proxy from go.example.org to 172.96.140.17:25697 doesn’t seem to forward the connection. Also want to get wss working so that online clients can access the server.
4. Error messages and/or full log output:
curl -v go.example.org
* Trying 34.149.204.188:80...
* Connected to go.example.org (34.149.204.188) port 80 (#0)
> GET / HTTP/1.1
> Host: go.example.org
> User-Agent: curl/7.80.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 308 Permanent Redirect
< Content-Type: text/html; charset=utf-8
< Location: https://go.example.org/
< Replit-Cluster: global
< Date: Tue, 10 Jan 2023 15:44:07 GMT
< Content-Length: 61
< Via: 1.1 google
<
<a href="https://go.example.org/">Permanent Redirect</a>.
* Connection #0 to host go.example.org left intact
5. What I already tried:
- Removing go.example.org in the config as the domain of the repl is already directed there with a CNAME record.
- Making two different blocks for the different ports with the same text.
- A lot of other things, including trying to serve a website on a file_server, which is not what I wanted.
6. Links to relevant resources:
Offline version of client (where screenshot above in section 3 was taken) https://eaglercraft.ru/dl/EaglerX_Offline.html
Browser-based Minecraft client (haven’t gotten connection to server working, linked below is a screenshot.) Minecraft 1.8.8
https://i.postimg.cc/Qt9SKD09/joinjeff-online.png
Update: Please look at Reverse_proxy for Browser-based compiled Minecraft client using WebSocket not working - #14 by devxan