shadowsocks-go icon indicating copy to clipboard operation
shadowsocks-go copied to clipboard

Example of User Management API usage

Open talentlessguy opened this issue 2 years ago • 1 comments

I couldn't find in docs how to set up something similar to ssmanager. Could you please show an example of how to set it up and use it?

for example with shadowsocks-rust ss manager:

{
  "server": "0.0.0.0",
  "server_port":25117,
  "password":"password",
  "timeout":300,
  "method":"chacha20-ietf-poly1305",
  "nameserver":"8.8.8.8",
  "mode":"tcp_and_udp",
  "manager_address": "0.0.0.0",
  "manager_port": 6100
}
$ smanager -c /etc/shadowsocks-rust/config.json

and then I can send commands using netcat:

$ echo 'list' | nc -u 0.0.0.0 6100
[{"server_port":25117,"password":"password"}]

how would I do it with this proxy implementation?

talentlessguy avatar Aug 16 '23 08:08 talentlessguy

There's the REST API for server management. It's currently not documented in README, as the spec is not finalized yet. But you could find its config fields in the full config example, and read the spec for usage examples.

database64128 avatar Aug 16 '23 11:08 database64128