mirror of https://github.com/wulabing/Xray_onekey
Merge branch 'tangyisheng2-master' into dev
commit
bdfc4b3510
12
install.sh
12
install.sh
|
@ -522,6 +522,7 @@ nginx_conf_add() {
|
||||||
cat >${nginx_conf_dir}/v2ray.conf <<EOF
|
cat >${nginx_conf_dir}/v2ray.conf <<EOF
|
||||||
server {
|
server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
|
listen [::]:443 http2;
|
||||||
ssl_certificate /data/v2ray.crt;
|
ssl_certificate /data/v2ray.crt;
|
||||||
ssl_certificate_key /data/v2ray.key;
|
ssl_certificate_key /data/v2ray.key;
|
||||||
ssl_protocols TLSv1.3;
|
ssl_protocols TLSv1.3;
|
||||||
|
@ -530,6 +531,13 @@ nginx_conf_add() {
|
||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
root /home/wwwroot/3DCEList;
|
root /home/wwwroot/3DCEList;
|
||||||
error_page 400 = /400.html;
|
error_page 400 = /400.html;
|
||||||
|
|
||||||
|
# Config for 0-RTT in TLSv1.3
|
||||||
|
ssl_early_data on;
|
||||||
|
ssl_stapling on;
|
||||||
|
ssl_stapling_verify on;
|
||||||
|
add_header Strict-Transport-Security "max-age=31536000";
|
||||||
|
|
||||||
location /ray/
|
location /ray/
|
||||||
{
|
{
|
||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
|
@ -540,10 +548,14 @@ nginx_conf_add() {
|
||||||
proxy_set_header Upgrade \$http_upgrade;
|
proxy_set_header Upgrade \$http_upgrade;
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header Connection "upgrade";
|
||||||
proxy_set_header Host \$http_host;
|
proxy_set_header Host \$http_host;
|
||||||
|
|
||||||
|
# Config for 0-RTT in TLSv1.3
|
||||||
|
proxy_set_header Early-Data $ssl_early_data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
server_name serveraddr.com;
|
server_name serveraddr.com;
|
||||||
return 301 https://use.shadowsocksr.win\$request_uri;
|
return 301 https://use.shadowsocksr.win\$request_uri;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue