add response content type

This commit is contained in:
Karol Wypchlo 2022-02-23 13:41:06 +01:00
parent c5316a41eb
commit 6358e2dac4
No known key found for this signature in database
GPG Key ID: B515DE9EEBE241E1
1 changed files with 4 additions and 0 deletions

View File

@ -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{