cubicdaiya/ngx_dynamic_upstream

[Request feature] Support result response is JSON

Opened this issue · 1 comments

Hi

Thanks for creating the awesome module. It's helped me so much for graceful restart backend instance behind nginx. I think it's become greater if it's supported parse result response to JSON format like that.

{
	"upstream": [{
		"server": "127.0.0.1:6001",
		"weight": 1,
		"max_fails": 1,
		"fail_timeout": 10
	}, {
		"server": "127.0.0.1:6002",
		"weight": 1,
		"max_fails": 1,
		"fail_timeout": 10
	}, {
		"server": "127.0.0.1:6003",
		"weight": 1,
		"max_fails": 1,
		"fail_timeout": 10
	}]
}

Do you have plan support JSON format?

Hi
i think it could be a really nice addition too. @ #