mirror of https://github.com/mack-a/v2ray-agent
feat(脚本): 添加nginx location
parent
a02fc06f81
commit
603aba69e3
|
@ -509,6 +509,9 @@ EOF
|
||||||
listen 31300;
|
listen 31300;
|
||||||
server_name ${domain};
|
server_name ${domain};
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
|
location /s/ {
|
||||||
|
alias /etc/v2ray-agent/s/;
|
||||||
|
}
|
||||||
# location / {
|
# location / {
|
||||||
# add_header Strict-Transport-Security "max-age=63072000" always;
|
# add_header Strict-Transport-Security "max-age=63072000" always;
|
||||||
# }
|
# }
|
||||||
|
@ -522,6 +525,9 @@ EOF
|
||||||
listen 31300;
|
listen 31300;
|
||||||
server_name ${domain};
|
server_name ${domain};
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
|
location /s/ {
|
||||||
|
alias /etc/v2ray-agent/s/;
|
||||||
|
}
|
||||||
location / {
|
location / {
|
||||||
add_header Strict-Transport-Security "max-age=63072000" always;
|
add_header Strict-Transport-Security "max-age=63072000" always;
|
||||||
}
|
}
|
||||||
|
@ -2990,7 +2996,7 @@ menu() {
|
||||||
cd "$HOME" || exit
|
cd "$HOME" || exit
|
||||||
echoContent red "\n=============================================================="
|
echoContent red "\n=============================================================="
|
||||||
echoContent green "作者:mack-a"
|
echoContent green "作者:mack-a"
|
||||||
echoContent green "当前版本:v2.3.1"
|
echoContent green "当前版本:v2.3.2"
|
||||||
echoContent green "Github:https://github.com/mack-a/v2ray-agent"
|
echoContent green "Github:https://github.com/mack-a/v2ray-agent"
|
||||||
echoContent green "描述:七合一共存脚本"
|
echoContent green "描述:七合一共存脚本"
|
||||||
echoContent red "=============================================================="
|
echoContent red "=============================================================="
|
||||||
|
|
Loading…
Reference in New Issue