-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
nginx: enableSSL description: clarify that HTTP is disabled; #25533 #25604
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
Conversation
Incidentally, it would also be nice to document this for the other web servers (apache, lightd, etc.), but I haven't used them in years and haven't looked at the Nix configs for them. If there's interest but nobody wants to add it, I could spend a bit of time seeing how they work. |
It also seems that if you enableSSL, you can't create a second one for port 80. does that seem to be true for you? |
@grahamc - What do you mean by "create a second one for port 80"? Do you mean creating a separate virtualHost with the same serverName? I haven't tried it, but I don't know of any reason it wouldn't work. (You'd have to give it a different name in the virtualHosts set (e.g., "www.example.com-HTTP") and then set the hostname explicitly with the serverName option, but I'd expect that to Just Work.) |
to complicate this a bit, documentation already talks about this Also, we shouldn't ask users to break abstraction (the
Here we show that nginx can listen on multiple ports and allow user to control 80 port (which is listened by default). As for me, it is strange to have configuration |
@fpletz, @fadenb and me have talked about this already. We are leaning towards deprecating The options would be:
We haven't had the time to implement this, so if someone beats us to it feel free to go ahead :) |
Thanks @globin for mentioning that! I like that solution, and if it's already agreed upon, I'm willing to spend some time (hopefully this week) to implement it. And that certainly makes this change unnecessary, so I'll go ahead and close it. |
Motivation for this change
#25533. I'm not the only one that's been confused by the fact that "enableSSL" also disables non-SSL; changing it would require a bit of refactoring and break backwards compatibility, so I'm taking the easy way and documenting existing behavior, along with providing @danbst's trivial workaround.
And while I really shouldn't, I find it somewhat magical that changing that description actually changes
man configuration.nix
. That's the "testing" I did; I didn't bother with the rest since that should be the only change.Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)