aboutsummaryrefslogtreecommitdiffstats
path: root/roles/shadowsocks/templates/config.json.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/shadowsocks/templates/config.json.j2')
-rw-r--r--roles/shadowsocks/templates/config.json.j214
1 files changed, 7 insertions, 7 deletions
diff --git a/roles/shadowsocks/templates/config.json.j2 b/roles/shadowsocks/templates/config.json.j2
index 73d3ef9..5e9ff0c 100644
--- a/roles/shadowsocks/templates/config.json.j2
+++ b/roles/shadowsocks/templates/config.json.j2
@@ -1,11 +1,11 @@
{
"server": ["::0", "0.0.0.0"],
- "server_port": {{ shadowsocks.port }},
- "password": "{{ shadowsocks.password }}",
+ "server_port": {{ profile.port }},
+ "password": "{{ profile.password }}",
"method": "{{ shadowsocks.method }}",
- "timeout": 600,
- "fast_open": true,
- "reuse_port": true,
- "no_delay": true,
- "user": "nobody"
+ "timeout": {{ shadowsocks.timeout }},
+ "fast_open": {{ shadowsocks.fast_open | to_json }},
+ "reuse_port": {{ shadowsocks.reuse_port | to_json }},
+ "no_delay": {{ shadowsocks.no_delay | to_json }},
+ "user": "{{ shadowsocks.user }}"
}