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