NGINX 1.13.0 mainline version has been released on 2017-04-25 with a support of TLSv1.3. And while we are waiting for an official release of OpenSSL 1.1.1 we describe here on how to get it working on Directadmin server with custombuild 2.0.
First we need to install additional script which will allow to install nginx mainline version on Linux server with DA:
cd /usr/local/directadmin/custombuild/ wget https://raw.githubusercontent.com/poralix/directadmin-utils/master/nginx/build_nginx -O ./build_nginx chmod 755 ./build_nginx ./build_nginx versions
Install custom version of configure script for NGINX to get it compiled against OpenSSL 1.1.1:
cd /usr/local/directadmin/custombuild/ mkdir -p custom/nginx_reverse/ cp -p custom/nginx_reverse/configure.nginx custom/nginx_reverse/configure.nginx~bak wget https://raw.githubusercontent.com/poralix/directadmin-utils/master/nginx/nginx_reverse/configure.nginx~openssl-1.1.1 -O custom/nginx_reverse/configure.nginx chmod 755 custom/nginx_reverse/configure.nginx
Install custom version of nginx-defaults.conf for NGINX to get TLSv1.3 enabled:
cd /usr/local/directadmin/custombuild/ mkdir -p custom/nginx_reverse/conf/ cp -p custom/nginx_reverse/conf/nginx-defaults.conf custom/nginx_reverse/conf/nginx-defaults.conf~bak wget https://raw.githubusercontent.com/poralix/directadmin-utils/master/nginx/nginx_reverse/conf/nginx-defaults.conf~TLSv1.3 -O custom/nginx_reverse/conf/nginx-defaults.conf
Rebuild NGINX
cd /usr/local/directadmin/custombuild/ ./build update ./build_nginx install ./build rewrite_confs
Check results
# nginx -V nginx version: nginx/1.13.0 built by gcc 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC) built with OpenSSL 1.1.1-dev xx XXX xxxx TLS SNI support enabled
That's it