update caddy config

test
233boy 6 years ago
parent e3b94bf31c
commit c516d0ca1f
  1. 4
      src/caddy-config.sh
  2. 2
      v2ray.sh

@ -8,7 +8,7 @@ $domain {
gzip gzip
timeouts none timeouts none
proxy / $proxy_site { proxy / $proxy_site {
without /${path} except /${path}
} }
proxy /${path} 127.0.0.1:${v2ray_port} { proxy /${path} 127.0.0.1:${v2ray_port} {
without /${path} without /${path}
@ -38,7 +38,7 @@ $domain {
gzip gzip
timeouts none timeouts none
proxy / $proxy_site { proxy / $proxy_site {
without /${path} except /${path}
} }
proxy /${path} https://127.0.0.1:${v2ray_port} { proxy /${path} https://127.0.0.1:${v2ray_port} {
header_upstream Host {host} header_upstream Host {host}

@ -10,7 +10,7 @@ none='\e[0m'
# Root # Root
[[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1 [[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1
_version="v3.14-test" _version="v3.15-test"
cmd="apt-get" cmd="apt-get"

Loading…
Cancel
Save