aboutsummaryrefslogtreecommitdiffstats
path: root/group_vars
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-06-24 17:08:54 +0800
committerAaron LI <aly@aaronly.me>2018-06-24 17:08:54 +0800
commitb8f4a6b806ecaf157cb5e4f822c7a5c2d34bdf09 (patch)
tree421cf54a759ef77cdb459279a5f1f8815d26ccff /group_vars
parent23e763e7f75093c3a2ad21c40ce3644984df0098 (diff)
downloadansible-dfly-vps-b8f4a6b806ecaf157cb5e4f822c7a5c2d34bdf09.tar.bz2
shadowsocks: Support multiple instances (share with others)
Add the "shadowsocks" rc script that allows multiple instances (based on the uwsgi rc script). Update the role and vars to setup two shadowsocks instances.
Diffstat (limited to 'group_vars')
-rw-r--r--group_vars/all/vars.yml17
1 files changed, 15 insertions, 2 deletions
diff --git a/group_vars/all/vars.yml b/group_vars/all/vars.yml
index 66cd4a5..be0a834 100644
--- a/group_vars/all/vars.yml
+++ b/group_vars/all/vars.yml
@@ -125,10 +125,23 @@ mail:
liwt.net: n-dVRtkDeJ8k4BuSphkV-GVso0zJJWO-Z6GYoz6ayOQ
aaronly.me: rSh99lenrfS-HnzvEahEDYTj9UvoKeX4NdWmDzD-pxo
+# ShadowSocks servers
shadowsocks:
- port: 8989
- password: "{{ vault_shadowsocks_password }}"
+ # common parameters
method: "chacha20-ietf-poly1305"
+ timeout: 600
+ fast_open: false # not supported on dfly
+ reuse_port: true
+ no_delay: true
+ user: "nobody"
+ #
+ profiles:
+ - name: default
+ port: 8989
+ password: "{{ vault_shadowsocks_password_default }}"
+ - name: share
+ port: 9090
+ password: "{{ vault_shadowsocks_password_share }}"
vpn:
interface: tun0