diff options
Diffstat (limited to 'roles/common-web/tasks/main.yml')
-rw-r--r-- | roles/common-web/tasks/main.yml | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/roles/common-web/tasks/main.yml b/roles/common-web/tasks/main.yml index e2eb3ee..f059bfc 100644 --- a/roles/common-web/tasks/main.yml +++ b/roles/common-web/tasks/main.yml @@ -8,7 +8,7 @@ tags: - logrotate -- name: Copy fastcgi parameters, acme-challenge and SSL configuration snippets +- name: Copy fastcgi parameters and SSL configuration snippets copy: src=etc/nginx/snippets/{{ item }} dest=/etc/nginx/snippets/{{ item }} owner=root group=root @@ -20,7 +20,6 @@ - fastcgi-php-ssl.conf - ssl.conf - headers.conf - - acme-challenge.conf notify: - Restart Nginx @@ -51,8 +50,19 @@ notify: - Restart Nginx +# WARN Bullseye: nginx >=1.15.1 uses font/woff and font/woff2 (cf. https://trac.nginx.org/nginx/ticket/1243) +# however Bootstrap(?) appears to query resources with "Accept: application/font-woff" resp. application/font-woff2. +# Unfortunately it also uses "Accept-Encoding: identity" so the resource isn't compressed... +- name: Fix MIME type for woff + lineinfile: dest=/etc/nginx/mime.types + insertafter='^\s*\S+\s\s+woff;' + line=' application/font-woff2 woff2;' + register: r5 + notify: + - Restart Nginx + - name: Start Nginx service: name=nginx state=started - when: not (r1.changed or r2.changed or r3.changed or r4.changed) + when: not (r1.changed or r2.changed or r3.changed or r4.changed or r5.changed) - meta: flush_handlers |