server { listen 8080; location /api { api write=on; # directives limiting access to the API } location = /dashboard.html { root /usr/share/nginx/html; } } # curl -s 'http://localhost:8080/api/6/nginx' | jq . { "version": "1.19.0", "build": "nginx-plus-r22", "address": "10.10.10.33", "generation": 20, "load_timestamp": "2020-09-27T12:25:52.600Z", "timestamp": "2020-09-27T23:42:42.952Z", "pid": 5403, "ppid": 14500 } # curl -X POST -d '{ "server": "10.0.0.1:8089" }' -s 'http://localhost:8080/api/6/http/upstreams/appg1/servers' | jq . { "id": 12, "server": "10.0.0.1:8089", "weight": 1, "max_conns": 0, "max_fails": 1, "fail_timeout": "10s", "slow_start": "0s", "route": "", "backup": false, "down": false } dashboard API ・・apiを有効化 ・・dashboardを提供 App App App 負荷UP 処理 DOWN 1