Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

www/caddy: Allow bind to non standard ports #4069

Merged
merged 4 commits into from
Jul 3, 2024

Conversation

Monviech
Copy link
Member

@Monviech Monviech commented Jun 30, 2024

Fixes: #4065

Adds following options:

http_port and https_port can be chosen freely. The validation catches errors when there are conflicts with the WebGUI ports.

This should satisfy advanced usecases without causing regressions.

@Monviech
Copy link
Member Author

Monviech commented Jun 30, 2024

@AdSchellevis If you have time, I would love some feedback on this idea. Offering bind to the default loopback interface should be safe, right?

EDIT: Wait I totally forgot the outgoing traffic... The reverse_proxy could not initiate connections to the backend when bound to the loopback interface. It would need some source NAT magic and thats dumb. I probably scrap the interface binding again and just offer the custom ports.

Offering binding to IP addresses is an even more broken concept for a reverse proxy than I initally even thought...

EDIT2: Removed.

@Monviech Monviech marked this pull request as draft June 30, 2024 16:30
@Monviech Monviech changed the title www/caddy: Allow bind to default loopback interface and non standard ports www/caddy: Allow bind to non standard ports Jun 30, 2024
@Monviech Monviech marked this pull request as ready for review June 30, 2024 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

www/caddy Specify listening port
2 participants