Skip to content

Commit

Permalink
fix: move append to mimetypes to under the include
Browse files Browse the repository at this point in the history
Signed-off-by: wilmardo <[email protected]>
  • Loading branch information
wilmardo committed Sep 15, 2022
1 parent 35bac95 commit 6a576df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 0 additions & 4 deletions conf/expires.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;}
}
6 changes: 6 additions & 0 deletions conf/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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" '
Expand Down

0 comments on commit 6a576df

Please sign in to comment.