From b8f4a6b806ecaf157cb5e4f822c7a5c2d34bdf09 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sun, 24 Jun 2018 17:08:54 +0800 Subject: 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. --- group_vars/all/vars.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'group_vars') 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 -- cgit v1.2.2