cubicdaiya / ngx_dynamic_upstream

Dynamic upstream for nginx
Other
501 stars 108 forks source link

[Request feature] Support result response is JSON #20

Open xluffy opened 7 years ago

xluffy commented 7 years ago

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?

xleliberty commented 7 years ago

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