Skip to content

Latest commit

 

History

History
37 lines (31 loc) · 1.76 KB

README.md

File metadata and controls

37 lines (31 loc) · 1.76 KB

Shadowsocks URL Generator Release Python GithubActions License

Python script that parses Shadowsocks server configuration file and generates a client configuration URI.

Usage

Simply copy and paste the following in a terminal:

python <(curl -s https://raw.githubusercontent.com/amayatsky/shadowsocks-url-generator/master/ss-genuri.py) \
-c /etc/shadowsocks-libev/config.json

Change /etc/shadowsocks-libev/config.json path if needed. Alternatively, you can provide a different config file path

Example

Input:

{
    "remarks": "ShadowSocks Server",
    "server":"github.com",
    "server_port":8388,
    "password":"fake_pwd",
    "method":"chacha20-ietf-poly1305"
}

Output:

ss://Y2hhY2hhMjAtaWV0Zi1wb2x5MTMwNTpmYWtlX3B3ZEBnaXRodWIuY29tOjgzODg=#ShadowSocks%20Server

Requirements

Python 3.9+

Contribution

Feel free to send your PRs and report any issues.

Where to get the shadowsocks itself?

https://github.com/shadowsocks/shadowsocks-libev
https://www.shadowsocks.org/en/index.html