spantaleev / matrix-docker-ansible-deploy

🐳 Matrix (An open network for secure, decentralized communication) server setup using Ansible and Docker
GNU Affero General Public License v3.0
4.78k stars 1.03k forks source link

Hide NGINX Server Version #2675

Open Siam-1998 opened 1 year ago

Siam-1998 commented 1 year ago

when i enter "element.mydomainname/sitemap.xml" it showing my nginix version. i need to hide NGINX version. Screenshot 2023-05-09 at 15-27-17 404 Not Found

Matrix Server: Ubuntu22.04 server Architecture amd64

rltas commented 1 year ago

https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/roles/custom/matrix-client-element/templates/nginx.conf.j2 There's currently no variable for additional configuration directives in that template. Why do you want to set server_tokens off?