1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/etcd-arm/etc/confd/templates/shadowsocks.json.tmpl
2015-10-01 12:27:32 +08:00

17 lines
424 B
Cheetah

{{ $base := "/services/shadowsocks" }}
{{ $name := index (ls $base) 2 }}
{{ with printf "%s/%s" $base $name | getv | json }}
{
"server": "{{ .server }}",
"server_port": {{ .server_port }},
"local_address": "{{ .local_address }}",
"local_port": {{ .local_port }},
"password": "{{ .password }}",
"method": "{{ .method }}",
"timeout": {{ .timeout }},
"fast_open": {{ .fast_open }}
}
{{ end }}