From 6a576dff4f6f41f69f05df949a3c85aeee7e34e9 Mon Sep 17 00:00:00 2001 From: wilmardo Date: Thu, 15 Sep 2022 21:29:39 +0200 Subject: [PATCH] fix: move append to mimetypes to under the include Signed-off-by: wilmardo --- conf/expires.conf | 4 ---- conf/nginx.conf | 6 ++++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/conf/expires.conf b/conf/expires.conf index c95aedf..f89eff5 100644 --- a/conf/expires.conf +++ b/conf/expires.conf @@ -28,8 +28,4 @@ location ~* \.(?:css|js|eot|woff|woff2|ttf|otf)$ { access_log off; add_header Pragma public; add_header Cache-Control "public"; - - # Add types not present in default mime.types - types {font/opentype otf;} - types {font/truetype ttf;} } diff --git a/conf/nginx.conf b/conf/nginx.conf index 1cde83b..eeb9019 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -19,6 +19,12 @@ events { http { include /etc/nginx/mime.types; + # Add types not present in default mime.types + types { + font/opentype otf; + font/truetype ttf; + } + default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" '