aboutsummaryrefslogtreecommitdiffstats
path: root/roles/shadowsocks/templates/config.json.j2
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-02-22 00:21:22 +0800
committerAaron LI <aly@aaronly.me>2018-03-14 11:28:41 +0800
commit6e2c2eb10093938e02a0d44726f71f82c7ffc5b8 (patch)
treef4fd2c88e6bc661d7f01ab62737fb8603b0cef87 /roles/shadowsocks/templates/config.json.j2
parent89160f6d4f94b872663edff3d736cf8e52d8928f (diff)
downloadansible-dfly-vps-6e2c2eb10093938e02a0d44726f71f82c7ffc5b8.tar.bz2
Add role shadowsocks
Diffstat (limited to 'roles/shadowsocks/templates/config.json.j2')
-rw-r--r--roles/shadowsocks/templates/config.json.j213
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/shadowsocks/templates/config.json.j2 b/roles/shadowsocks/templates/config.json.j2
new file mode 100644
index 0000000..c5fb0cb
--- /dev/null
+++ b/roles/shadowsocks/templates/config.json.j2
@@ -0,0 +1,13 @@
+{
+ "server": ["::0", "0.0.0.0"],
+ "server_port": {{ shadowsocks.server_port }},
+ "local_port": 1080,
+ "password": "{{ shadowsocks.password }}",
+ "method": "{{ shadowsocks.method }}",
+ "nameserver": "{{ shadowsocks.nameserver }}",
+ "timeout": 600,
+ "fast_open": true,
+ "reuse_port": true,
+ "no_delay": true,
+ "user": "nobody"
+}