diff --git a/roles/install_nginx/tasks/main.yml b/roles/install_nginx/tasks/main.yml index 7584dfa..218ca39 100644 --- a/roles/install_nginx/tasks/main.yml +++ b/roles/install_nginx/tasks/main.yml @@ -8,3 +8,12 @@ retries: 3 until: apt_result is succeeded +- name: Add wasm to mime type + lineinfile: + path: /etc/nginx/mime.types + regexp: '\s*application/wasm\s+wasm;$' + line: ' application/wasm wasm;' + owner: root + group: root + mode: '0644' + insertbefore: '}' diff --git a/roles/reverse_proxy_http/templates/nginx/sites-available/reverse_proxy b/roles/reverse_proxy_http/templates/nginx/sites-available/reverse_proxy index 62297f3..27da41d 100644 --- a/roles/reverse_proxy_http/templates/nginx/sites-available/reverse_proxy +++ b/roles/reverse_proxy_http/templates/nginx/sites-available/reverse_proxy @@ -12,8 +12,11 @@ server { return 302 https://$host$request_uri; } - # "A man is not dead while his name is still spoken." -- Going Postal - add_header X-Clacks-Overhead "GNU {{ ', '.join(in_memoriam) }}"; + include /etc/nginx/mime.types; + default_type application/octet-stream; + + # "A man is not dead while his name is still spoken." -- Going Postal + add_header X-Clacks-Overhead "GNU {{ ', '.join(in_memoriam) }}"; } server { @@ -34,7 +37,10 @@ server { include "/etc/nginx/snippets/options-proxypass.conf"; } - # "A man is not dead while his name is still spoken." -- Going Postal - add_header X-Clacks-Overhead "GNU {{ ', '.join(in_memoriam) }}"; + include /etc/nginx/mime.types; + default_type application/octet-stream; + + # "A man is not dead while his name is still spoken." -- Going Postal + add_header X-Clacks-Overhead "GNU {{ ', '.join(in_memoriam) }}"; } diff --git a/roles/share_file_web/templates/nginx/sites-available/sharing_site b/roles/share_file_web/templates/nginx/sites-available/sharing_site index e446f2e..57c8071 100644 --- a/roles/share_file_web/templates/nginx/sites-available/sharing_site +++ b/roles/share_file_web/templates/nginx/sites-available/sharing_site @@ -11,8 +11,12 @@ server { location / { return 302 https://$host$request_uri; } - # "A man is not dead while his name is still spoken." -- Going Postal - add_header X-Clacks-Overhead "GNU {{ ', '.join(in_memoriam) }}"; + + include /etc/nginx/mime.types; + default_type application/octet-stream; + + # "A man is not dead while his name is still spoken." -- Going Postal + add_header X-Clacks-Overhead "GNU {{ ', '.join(in_memoriam) }}"; } server { @@ -33,7 +37,10 @@ server { try_files $uri $uri.html 404; } - # "A man is not dead while his name is still spoken." -- Going Postal - add_header X-Clacks-Overhead "GNU {{ ', '.join(in_memoriam) }}"; + include /etc/nginx/mime.types; + default_type application/octet-stream; + + # "A man is not dead while his name is still spoken." -- Going Postal + add_header X-Clacks-Overhead "GNU {{ ', '.join(in_memoriam) }}"; }