shadowsocks-manager

Prepare to install postfix in preparation for using the smtp service

1)

setsid ss-manager -m aes-256-cfb -u --manager-address 127.0.0.1:4000

2)

$ mkdir ~/.ssmgr

$ vim ~/.ssmgr/ss.yml

3)ss.yml

type: s empty: false

shadowsocks:
address: 127.0.0.1:4000

manager:
address: 0.0.0.0:6001
password: 'manager passwd'

db: 'ss_2017.sqlite'

4)webgui.yml

type: m

manager:
address: 127.0.0.1:6001
password: 'manager passwd'

plugins:
flowSaver:
use: true
user:
use: true
account:
use: true
macAccount:
use: true
email:
use: true
username: 'A mailbox for sending, such as 163'
password: 'mail passwd'
host: 'smtp.163.com'
webgui:
use: true
host: '0.0.0.0'
port: '8080'
site: 'http://www.youwebsite.com'

db: 'webgui_2017.sqlite'

5) Specify inbound rules in the Aws instance console.
The 4000 port is the server end port (each site should have its configuration installed)
Port 6001 is the administrative port (only one administrative control site needs to be set up)
50004-50050 TCP (user assigned port)

6)

setsid ssmgr -c ~/.ssmgr/ss.yml

setsid ssmgr -c ~/.ssmgr/webgui.yml

7)
Log in to the admin site-admin console specified in webgui.yml
The first user is an administrator user
Set up the flow and cycle of the account for registration; announce and prompt information;

8) Complete - Users can be registered for use.

Appendix:
Modify the webgui interface:

You can try to modify these files.

$ sudo vim /usr/lib/node_modules/shadowsocks-manager/plugins/webgui/views/index.html
$ sudo vim /usr/lib/node_modules/shadowsocks-manager/plugins/webgui/public/views/home/home.html
$ sudo vim /usr/lib/node_modules/shadowsocks-manager/plugins/webgui/public/controllers/home.js
$ sudo vim /usr/lib/node_modules/shadowsocks-manager/plugins/webgui/public/serviceworker.js
After you modified the files, you need re-pack via executing below command in path
/usr/lib/node_modules/shadowsocks-manager/

$ sudo npm run-script build

Tags: vim sudo SQLite AWS

Posted on Sun, 17 May 2020 10:09:07 -0700 by herve