mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-02-20 23:47:21 -05:00
Added extra directory for the distribution of optional data
This commit is contained in:
parent
8971029ded
commit
2a5aa8d3fa
@ -0,0 +1,48 @@
|
|||||||
|
/*
|
||||||
|
|
||||||
|
V2Fly Auto Generated Subscription Outbounds
|
||||||
|
|
||||||
|
The output format is not stable, you may not rely on the configure file generate same tag for every servers each time.
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
{
|
||||||
|
"outbounds": [
|
||||||
|
|
||||||
|
{{- if .IsJson -}}
|
||||||
|
{{- /* @Json File */ -}}
|
||||||
|
{{- with .AsJson -}}
|
||||||
|
{{- $SIP008Version := print .version -}}
|
||||||
|
{{- if eq $SIP008Version "1" -}}
|
||||||
|
{{- $user_uuid := .user_uuid -}}
|
||||||
|
{{- /* SIP008 */ -}}
|
||||||
|
{{- $totalServers := len .servers -}}
|
||||||
|
|
||||||
|
{{- range $seq , $server := .servers -}}
|
||||||
|
{
|
||||||
|
"protocol": "shadowsocks",
|
||||||
|
"settings": {
|
||||||
|
"servers": [
|
||||||
|
{
|
||||||
|
"address": "{{$server.server}}",
|
||||||
|
"email": "",
|
||||||
|
"level": 0,
|
||||||
|
"method": "{{$server.method}}",
|
||||||
|
"password": "{{$server.password}}",
|
||||||
|
"port": {{$server.server_port}}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"tag": "{{shorthand $user_uuid}}:{{$server.server}}:{{$server.server_port}}"
|
||||||
|
}
|
||||||
|
{{- $lastseq := dec $totalServers -}}
|
||||||
|
{{- if ne $seq $lastseq -}}
|
||||||
|
,
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- end -}}{{/* - range $seq , $server := .servers -}} */}}
|
||||||
|
{{- end -}}{{/* {{- if eq $SIP008Version "1" -}} */}}
|
||||||
|
{{end}}{{/* {{- with .AsJson -}} */}}
|
||||||
|
{{- end}}{{/* {{- if .IsJson -}} */}}
|
||||||
|
]
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user