Disable https listener on port 443 when only http is used #62
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi,
if only using http configuration the listener for https on 443 also starts which shouldn't happen.
I would really liked to create a PR to make your life easier, however I'm not allowed to fork the repo, I think this is the easiest way for this container to prevent the https listener on port 443 to start (2x if statements that moves the
ssl.conf
around):@throwaway what do you make of this?
Thank you for investigating this! You are absolutely correct, nothing should bind to 443 if the intention is to run http only.
I see you are toggling the filename between
ssl.conf
and.ssl.conf
your solution is nice, but in my opinion it is generally better to not do surgery with filesystem and instead apply working configs
I've created a PR that gives http and https their own
conf.d
folderThis way when running in http mode a empty
conf.d/ssl.conf
will override the default content and prevent binding to 443.Let me know if this works for you!
Fixed and merged in latest commit, also pushed to docker. Feel free to re-open if another issue arises
@throwaway thank you bro
@throwaway that would of course work but seems a bit complicated and I think it would be way easier just to move around the
ssl.conf
since you also overwrite thehttpd.conf
with whatever the user is using <- that's why I don't understand the argument with not "surgery with the filesystem" since you already doing it.However if it works for you and works then it works for me. :)