From 6358e2dac408dd2863f9907df2242fec0f34fe49 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 23 Feb 2022 13:41:06 +0100 Subject: [PATCH] add response content type --- docker/nginx/conf.d/server/server.api | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker/nginx/conf.d/server/server.api b/docker/nginx/conf.d/server/server.api index c6ea5777..7340eb72 100644 --- a/docker/nginx/conf.d/server/server.api +++ b/docker/nginx/conf.d/server/server.api @@ -75,6 +75,10 @@ location /skynet/stats { location /nginx/stats { include /etc/nginx/conf.d/include/cors; + charset utf-8; + charset_types application/json; + default_type application/json; + content_by_lua_block { local json = require('cjson') ngx.say(json.encode{