Need to check both the below configs and apply the relevant configuration to Nginx, Nginx-proxy and Mysql. http://github.com/dev-sec/ansible-collection-hardening/blob/master/roles/nginx_hardening/defaults/main.yml http://github.com/dev-sec/ansible-collection-hardening/blob/master/roles/mysql_hardening/defaults/main.yml