-
Notifications
You must be signed in to change notification settings - Fork 236
Description
I'm trying to use Caddy as a reverse proxy, allowing users to connect to my Syncplay server via a subdomain such as syncplay.example.com.
I would like to do this with a configuration such as:
syncplay.example.com {
reverse_proxy 000.000.000.000:XXXX
}
Wherein, to explain, a request sent to syncplay.example.com is sent to my server's public IP, at the port servicing Syncplay.
Unfortunately, the Syncplay client aggressively appends a port to your server address. If no port is detected, it seems to append the default 8999 port. As a result, trying to enter syncplay.example.com as my server address will fail, as it instead tries to connect to syncplay.example.com:8999, which will error out even if the port for the server is in fact 8999.
The only solution I've found is to change the Caddy configuration to something more like:
syncplay.example.com {
reverse_proxy 000.000.000.000
}
And simply requiring users to append your port or, if you're using the default port, simply trust the client to do so. I'm not very pleased with this solution.
Is there a way to, for example, disable automatic port appending if a subdomain is detected?