Skip to content

Instantly share code, notes, and snippets.

@madeye

madeye/example.json

Last active Mar 16, 2020
Embed
What would you like to do?
example.json
[
{
"server": "198.199.101.152",
"server_port": 8388,
"password": "u1rRWTssNv0p",
"method": "aes-256-cfb",
"remarks": "Example 1"
},
{
"server": "198.199.101.12",
"server_port": 8388,
"password": "u1rRWTssNv0p",
"method": "aes-256-cfb",
"plugin": "v2ray",
"plugin_opts": "host=www.example.com",
"remarks": "Example 2",
"route": "bypass-lan-china",
"remote_dns": "dns.google",
"ipv6": true,
"metered": false,
"proxy_apps": {
"enabled": true,
"bypass": true,
"android_list": [
"com.eg.android.AlipayGphone",
"com.wudaokou.hippo",
"com.zhihu.android"
]
},
"udpdns": false
},
]
@Mygod

This comment has been minimized.

Copy link

@Mygod Mygod commented Jan 14, 2020

Should we remove nonstandard JSON fields, at least from one of the profiles?

@madeye

This comment has been minimized.

Copy link
Owner Author

@madeye madeye commented Jan 14, 2020

Yeah, you're right. Let me update the file.

@billzhong

This comment has been minimized.

Copy link

@billzhong billzhong commented Jan 14, 2020

@madeye @Mygod
Thanks for adding online server subscription.
How to define the SIP003 plugin in the JSON config file?
Also, it will be great if you can add description for all the fields.

@mahc9kez

This comment has been minimized.

Copy link

@mahc9kez mahc9kez commented Jan 22, 2020

    "ipv6": true,
    "metered": false,
    "remarks": "Example 2",
    "route": "bypass-lan-china",
    "route": "all",

Duplicated in the second profile

@studentmain

This comment has been minimized.

Copy link

@studentmain studentmain commented Jan 25, 2020

There are some config is system wide, I'd prefer put all config into object instead of array.

{
  "servers": [
    {
      "server": "198.199.101.152",
      "server_port": 8388,
      "password": "u1rRWTssNv0p",
      "method": "aes-256-cfb",
      "remarks": "Example 1"
    }
  ],
  "pacUrl": "https://www.example.com/pac",
  "proxy": {
    "proxyType": "http",
    "proxyServer": "http://proxy.example.com",
    "proxyPort": 80
  }
}
@Mygod

This comment has been minimized.

Copy link

@Mygod Mygod commented Mar 16, 2020

This file is moved to https://github.com/shadowsocks/shadowsocks-android/blob/master/.github/doc-json.md.

@studentmain This file is only meant to represent what fields shadowsocks-android expects from the subscription file. Feel free to extend it, as described in the documentation above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.