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

Does server supports hot reload for adding new users?

Open deknowny opened this issue 9 months ago • 2 comments

Maybe react on HUP signals

deknowny avatar May 16 '25 13:05 deknowny

Not currently. I would prefer adding a new file containing users for a specific server configuration. Reload if file content has changed.

zonyitoo avatar May 16 '25 15:05 zonyitoo

For Shadowsocks 2022, I would recommend using the same user PSK file format as shadowsocks-go: https://github.com/database64128/shadowsocks-go/blob/main/docs/upsks.json.

Note that shadowsocks-go uses SIGUSR1 as the reload signal, because SIGHUP can be sent to the process for other reasons: https://stackoverflow.com/questions/13337701/what-can-cause-sighup-to-be-generated

Please also keep in mind that, for #1626 and #1778, we could implement support for Shadowsocks Server Management API v1, which also provides user management.

database64128 avatar May 16 '25 15:05 database64128