diff --git a/roles/nginx/tasks/main.yaml b/roles/nginx/tasks/main.yaml index ed43bc0..0bc91cb 100644 --- a/roles/nginx/tasks/main.yaml +++ b/roles/nginx/tasks/main.yaml @@ -5,8 +5,6 @@ service_name: 'nginx' service_packages: - 'nginx' - tags: - - 'packages' - name: 'disable nginx default configuration' file: diff --git a/roles/nginx/templates/base.j2 b/roles/nginx/templates/base.j2 index 9c9af35..80c8937 100644 --- a/roles/nginx/templates/base.j2 +++ b/roles/nginx/templates/base.j2 @@ -12,6 +12,8 @@ server { real_ip_header proxy_protocol; {% endif %} + server_name {{ server_fqdn }}; + # Do not advertise nginx version number server_tokens off;