digitalocean / nginxconfig.io

⚙️ NGINX config generator on steroids 💉
https://do.co/nginxconfig
MIT License
27.42k stars 2.01k forks source link

nginx 1.25.1: the deprecated "ssl" directive is not supported anymore #458

Open klevvit opened 7 months ago

klevvit commented 7 months ago

Information

nginx/1.25.3 https://whatismybrowser.com/w/AYNKTC6

Details

Config setup fails on latest nginx versions

Description

I tried to follow the instructions of the configuration I created, but sudo nginx -t failed in Certbot step after "Comment out SSL related directives in the configuration". I'm using the latest nginx version, and the problem is it doesn't support "ssl" directive since 1.25.1: http://nginx.org/en/CHANGES

Everything works fine when I skip "Comment" & "Uncomment SSL related directives" instructions.

Steps to reproduce

Expected behavior

"Commenting out SSL related directives" step should be hidden as legacy or removed. The "listen ... http2" directive should be probably considered to have the same destiny: it's still supported, but is deprecated.

Screenshots