From 25e506f54d56f49bf5201b76076bc167fafce290 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jovan=20Kruni=C4=87?= Date: Tue, 29 Nov 2022 16:32:04 +0100 Subject: [PATCH] fix: SVGs treated as plain texts Closes #14 --- fixtures/cors.template | 1 - nginx.conf.template | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/fixtures/cors.template b/fixtures/cors.template index 7cfbec6e..bfb83b57 100644 --- a/fixtures/cors.template +++ b/fixtures/cors.template @@ -3,4 +3,3 @@ add_header 'Access-Control-Allow-Credentials' 'true'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,X-StApps-Version'; add_header 'Access-Control-Max-Age' 1728000; -add_header 'Content-Type' 'text/plain charset=UTF-8'; diff --git a/nginx.conf.template b/nginx.conf.template index 6cadc1f4..7465d2a6 100644 --- a/nginx.conf.template +++ b/nginx.conf.template @@ -21,6 +21,7 @@ map $isRateLimited $rateLimit { limit_req_zone $rateLimit zone=customstappslimit:10m rate=20r/s; server { + charset utf-8; error_log stderr; access_log /dev/stdout {{{ logFormat }}};