-
Notifications
You must be signed in to change notification settings - Fork 599
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 Specify listening port #4065
Comments
You can use import statements to change whatever you want. Here is an example: https://docs.opnsense.org/manual/how-tos/caddy.html#advanced-bind-caddy-to-specific-interface https://docs.opnsense.org/manual/how-tos/caddy.html#using-custom-configuration-files Edit: You would need to port forward port 80 and 443 to 8080 and 8443 then, which makes the point to change these ports moot. |
@Monviech Thanks for the info, not sure how I missed reading about adding custom config files but I've now got it sorted to the use the specific ports. My main reason is that I wanted the local hostname/ip to go still to Opnsense dashboard (without specifying ports) and only the external domains through the reverse proxy. Nevertheless as it's working now I'll close this request. |
@PacFox Oh okay. Great that you got it working. When more people request it in the future I might add it to the GUI. I'm just a little reluctant about it, just as with offering binding to a specific IP address, since I have a high priority to avoid unintended user error. EDIT: https://docs.opnsense.org/manual/how-tos/caddy.html#reverse-proxy-the-opnsense-webgui |
@Monviech That's fair enough, never any fun running into that. Thanks very much for your time and knowledge with this all. |
@PacFox I have looked at it again and see no reason not to offer it in the GUI. I have attached a PR. |
Thanks @Monviech, I'll try it out once the next update is out. |
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
Is your feature request related to a problem? Please describe.
I saw from the Caddy documentation (https://caddyserver.com/docs/caddyfile/options#https-port) that it should be possible to change the ports it will listen on in the Caddyfile however when installed in Opnsense it's commented as auto-generated.
Describe the solution you'd like
I would like to be able to set the Caddy's HTTPS and HTTP listening ports similar to how you can with Unbound's DNS listening port.
Describe alternatives you've considered
I thought about using a container to run it separately where I'd have full control though it would be better if it could just run whenever the router is running.
The text was updated successfully, but these errors were encountered: