Closed Cyb3r-Jak3 closed 5 months ago
👀 I'm somewhat concerned this is going to be very breaking for most users? This directive isn't even in stable yet, and causes the entire configuration to error out. It was landed in 1.25.1 which is mainline, whereas 1.24.x is considered stable: https://nginx.org/en/CHANGES
NGINXConfig generally tries to stay as backwards compatible as possible, so until deprecated directives are completely removed, we generally keep using them to support the most versions possible.
I think perhaps under the global NGINX tab, we need options to toggle what directives are being used? In the same 1.25.1 release, the ssl directive was also removed which NGINXConfig currently uses during the installation flow. Then again, perhaps that installation flow could be revisited to not require disabling SSL temporarily.
Ah, I was following the mainline changes, not stable.
I agree that a toggle, maybe it could change between mainline and stable? I know that HTTP/3 support is now also in mainline version, so it would no longer require the custom build warning that is currently visible.
Yeah, that sounds like a good way to approach it. Probably just a checkbox under the global NGINX tab for "enable NGINX mainline support" or smth.
Should I include that as part of this PR or make a seperate one?
I wouldn't worry about the SSL stuff in this PR, but adding the checkbox in this PR to allow the http2 change to be toggled would be great :)
I'm going to close this PR out as there hasn't been any movement in a while. You're welcome to re-open or create a new one if you find the time to work on the changes :)
Type of Change
http2 on
method instead oflisten ... http2
What issue does this relate to?
Resolves #451
What should this PR do?
Changes how HTTP2 is enabled with
What are the acceptance criteria?
Verify that new HTTP/2 directive matches the docs.
Previous![firefox_AIwZwD86ZG](https://github.com/digitalocean/nginxconfig.io/assets/13918954/6646c797-4fea-4850-9e11-f00d5d57e296)
With changes![firefox_uKflHkIgPI](https://github.com/digitalocean/nginxconfig.io/assets/13918954/a362e95f-4d39-40cc-8588-d51bd0fa7018)