Here, selfoss:8888 refer to the selfoss container, where nginx listen to the port 8888.
When I try to load https://domain.com on my browser, I get the index file but the css and javascript file are not loaded: the files are requested at rss.domain.com:8888 instead of rss.domain.com.
In the <head> of the index page, I have <base href="https://rss.nephe.fr:8888/">.
Is there something missing in my configuration to correctly transmit which port was initially used?
The {port} placeholder should be the port that Caddy’s client used to connect. Are you seeing different behaviour?
As far as I know, the only reason is that X-Forwarded-Port is pretty rare to see. I don’t think it’d hurt to have it added to the transparent preset, though. Perhaps you could open an issue on the Caddy repo so it can be discussed? Sign in to GitHub · GitHub
Huh… Does it change every time, or is it consistently port 58654? It might be the client’s port, not the port the client connected to Caddy on. That would make sense based on the wording, but it’s infinitely less useful for us who want to know the server port.
The server port information is available - it’s appended to the {host} placeholder (and specifically excluded by {hostonly}) - but if {port} isn’t it, then there’s no actual placeholder to get it on its own and it would be useful to have one!
When you open the issue on the transparent preset, mention that as well (and maybe link to this thread) - a PR for this issue might knock both problems over at once (implement the placeholder, and include X-Forwarded-Port in the the transparent preset).