mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-06-12 13:24:13 +08:00
1.0 KiB
1.0 KiB
icon |
---|
material/new-box |
!!! question "Since sing-box 1.12.0"
SSM API
SSM API service is a RESTful API server for managing Shadowsocks servers.
Structure
{
"type": "ssm-api",
... // Listen Fields
"servers": {},
"cache_path": "",
"tls": {}
}
Listen Fields
See Listen Fields for details.
Fields
servers
==Required==
A mapping Object from HTTP endpoints to Shadowsocks Inbound tags.
Selected Shadowsocks inbounds must be configured with managed enabled.
Example:
{
"servers": {
"/": "ss-in"
}
}
cache_path
If set, when the server is about to stop, traffic and user state will be saved to the specified JSON file to be restored on the next startup.
tls
TLS configuration, see TLS.