mirror of https://github.com/wulabing/Xray_onekey
V3.2 代码更新
nginx配置添加 TLS1.3 http2 支持(实际上没什么卵用,原因在readme说明) nginx 从stable版本变更至mainlinepull/41/head
parent
c1d23f8cc1
commit
b2904df47d
14
install.sh
14
install.sh
|
@ -4,7 +4,7 @@
|
||||||
# System Request:Debian 7+/Ubuntu 14.04+/Centos 6+
|
# System Request:Debian 7+/Ubuntu 14.04+/Centos 6+
|
||||||
# Author: wulabing
|
# Author: wulabing
|
||||||
# Dscription: V2ray ws+tls onekey
|
# Dscription: V2ray ws+tls onekey
|
||||||
# Version: 3.0
|
# Version: 3.2
|
||||||
# Blog: https://www.wulabing.com
|
# Blog: https://www.wulabing.com
|
||||||
# Official document: www.v2ray.com
|
# Official document: www.v2ray.com
|
||||||
#====================================================
|
#====================================================
|
||||||
|
@ -51,16 +51,16 @@ check_system(){
|
||||||
echo -e "${OK} ${GreenBG} 当前系统为 Debian ${VERSION_ID} ${VERSION} ${Font} "
|
echo -e "${OK} ${GreenBG} 当前系统为 Debian ${VERSION_ID} ${VERSION} ${Font} "
|
||||||
INS="apt"
|
INS="apt"
|
||||||
## 添加 Nginx apt源
|
## 添加 Nginx apt源
|
||||||
echo "deb http://nginx.org/packages/debian/ ${VERSION} nginx" >> /etc/apt/sources.list
|
echo "deb http://nginx.org/packages/mainline/debian/ ${VERSION} nginx" >> /etc/apt/sources.list
|
||||||
echo "deb-src http://nginx.org/packages/debian/ ${VERSION} nginx" >> /etc/apt/sources.list
|
echo "deb-src http://nginx.org/packages/mainline/debian/ ${VERSION} nginx" >> /etc/apt/sources.list
|
||||||
wget -nc https://nginx.org/keys/nginx_signing.key
|
wget -nc https://nginx.org/keys/nginx_signing.key
|
||||||
apt-key add nginx_signing.key
|
apt-key add nginx_signing.key
|
||||||
elif [[ "${ID}" == "ubuntu" && `echo "${VERSION_ID}" | cut -d '.' -f1` -ge 16 ]];then
|
elif [[ "${ID}" == "ubuntu" && `echo "${VERSION_ID}" | cut -d '.' -f1` -ge 16 ]];then
|
||||||
echo -e "${OK} ${GreenBG} 当前系统为 Ubuntu ${VERSION_ID} ${VERSION} ${Font} "
|
echo -e "${OK} ${GreenBG} 当前系统为 Ubuntu ${VERSION_ID} ${VERSION} ${Font} "
|
||||||
INS="apt"
|
INS="apt"
|
||||||
## 添加 Nginx apt源
|
## 添加 Nginx apt源
|
||||||
echo "deb http://nginx.org/packages/debian/ ${VERSION} nginx" >> /etc/apt/sources.list
|
echo "deb http://nginx.org/packages/mainline/debian/ ${VERSION} nginx" >> /etc/apt/sources.list
|
||||||
echo "deb-src http://nginx.org/packages/debian/ ${VERSION} nginx" >> /etc/apt/sources.list
|
echo "deb-src http://nginx.org/packages/mainline/debian/ ${VERSION} nginx" >> /etc/apt/sources.list
|
||||||
wget -nc https://nginx.org/keys/nginx_signing.key
|
wget -nc https://nginx.org/keys/nginx_signing.key
|
||||||
apt-key add nginx_signing.key
|
apt-key add nginx_signing.key
|
||||||
else
|
else
|
||||||
|
@ -293,11 +293,11 @@ nginx_conf_add(){
|
||||||
touch ${nginx_conf_dir}/v2ray.conf
|
touch ${nginx_conf_dir}/v2ray.conf
|
||||||
cat>${nginx_conf_dir}/v2ray.conf<<EOF
|
cat>${nginx_conf_dir}/v2ray.conf<<EOF
|
||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl http2;
|
||||||
ssl on;
|
ssl on;
|
||||||
ssl_certificate /etc/v2ray/v2ray.crt;
|
ssl_certificate /etc/v2ray/v2ray.crt;
|
||||||
ssl_certificate_key /etc/v2ray/v2ray.key;
|
ssl_certificate_key /etc/v2ray/v2ray.key;
|
||||||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
|
||||||
ssl_ciphers HIGH:!aNULL:!MD5;
|
ssl_ciphers HIGH:!aNULL:!MD5;
|
||||||
server_name serveraddr.com;
|
server_name serveraddr.com;
|
||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
|
|
Loading…
Reference in New Issue