Skip to content

Commit

Permalink
fix: charset explicit utf8 (#969)
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo authored Aug 3, 2022
1 parent ccca30c commit ff400bd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ http {
add_header X-Frame-Options "deny";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";


charset utf-8;

gzip on;
gzip_disable "msie6";
gzip_vary on;
Expand Down
6 changes: 4 additions & 2 deletions nginx4spa/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ http {
add_header X-Frame-Options "deny";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";


charset utf-8;

gzip on;
gzip_disable "msie6";
gzip_vary on;
Expand All @@ -40,7 +42,7 @@ http {
error_page 500 502 503 504 /50x.html;

location / {
# this always fallback on /index.html, never 404
# this always fallback on /index.html, never 404
try_files $uri $uri.html $uri/index.html $uri/ /index.html;
}

Expand Down

0 comments on commit ff400bd

Please sign in to comment.