The dokku template nginx.conf.sigil contains parameters that are obsolate or deprecated in nginx 1.26.1 #7047
Replies: 5 comments 3 replies
-
|
There is only the one bundled with Dokku. What version of nginx started spitting out those errors, and what is the earliest version that is compatible with the new syntax? |
Beta Was this translation helpful? Give feedback.
-
|
We don't use all different version of nginx. |
Beta Was this translation helpful? Give feedback.
-
|
In the Nginx verion 1.25.1 the deprecate/obsolete warning was introduced. |
Beta Was this translation helpful? Give feedback.
-
|
Josegonzalez |
Beta Was this translation helpful? Give feedback.
-
|
We use as operating system Ubuntu 20.04.6 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We use dokku 0.34.7 and nginx 1.26.1
Dokku contains the template /var/lib/dokku/plugins/available/nginx-vhosts/templates/nginx.conf.sigil
From this template the nginx.conf file is generated.
The generated nginx.conf contains the parameter: "http2_push_preload".
But the command nginx -t give the warning:
nginx: [warn] the "http2_push_preload" directive is obsolete, ignored in /home/dokku/nextcloud/nginx.conf:41
The generated nginx.conf contains also the line: "listen 443 ssl http2;"
But the command nginx -t give the warning:
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /home/dokku/ov-ws/nginx.conf
The new syntax is:
listen ssl 443;
http2 on;
Is there a new template available that generates an nginx.conf that does not contain rules that are obsolete or deprecated
for nginx 1.26.1?
Beta Was this translation helpful? Give feedback.
All reactions