|
|
|
@ -1,10 +1,10 @@ |
|
|
|
|
local email=$(((RANDOM << 22))) |
|
|
|
|
# local email=$(((RANDOM << 22))) |
|
|
|
|
# tls ${email}@gmail.com |
|
|
|
|
case $v2ray_transport in |
|
|
|
|
4) |
|
|
|
|
if [[ $is_path ]]; then |
|
|
|
|
cat >/etc/caddy/Caddyfile <<-EOF |
|
|
|
|
$domain { |
|
|
|
|
tls ${email}@gmail.com |
|
|
|
|
gzip |
|
|
|
|
timeouts none |
|
|
|
|
proxy / $proxy_site { |
|
|
|
@ -20,7 +20,6 @@ import sites/* |
|
|
|
|
else |
|
|
|
|
cat >/etc/caddy/Caddyfile <<-EOF |
|
|
|
|
$domain { |
|
|
|
|
tls ${email}@gmail.com |
|
|
|
|
timeouts none |
|
|
|
|
proxy / 127.0.0.1:${v2ray_port} { |
|
|
|
|
websocket |
|
|
|
@ -34,7 +33,6 @@ import sites/* |
|
|
|
|
if [[ $is_path ]]; then |
|
|
|
|
cat >/etc/caddy/Caddyfile <<-EOF |
|
|
|
|
$domain { |
|
|
|
|
tls ${email}@gmail.com |
|
|
|
|
gzip |
|
|
|
|
timeouts none |
|
|
|
|
proxy / $proxy_site { |
|
|
|
@ -51,7 +49,6 @@ import sites/* |
|
|
|
|
else |
|
|
|
|
cat >/etc/caddy/Caddyfile <<-EOF |
|
|
|
|
$domain { |
|
|
|
|
tls ${email}@gmail.com |
|
|
|
|
timeouts none |
|
|
|
|
proxy / https://127.0.0.1:${v2ray_port} { |
|
|
|
|
header_upstream Host {host} |
|
|
|
|