mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
容器增加 ipv6 检测,自动配置 nginx
This commit is contained in:
@@ -9,9 +9,8 @@ export isFirstStartServer=true
|
||||
echo -e "======================1. 检测配置文件========================\n"
|
||||
make_dir /etc/nginx/conf.d
|
||||
make_dir /run/nginx
|
||||
cp -fv $nginx_conf /etc/nginx/nginx.conf
|
||||
cp -fv $nginx_app_conf /etc/nginx/conf.d/front.conf
|
||||
sed -i "s,QL_BASE_URL,${qlBaseUrl},g" /etc/nginx/conf.d/front.conf
|
||||
init_nginx
|
||||
|
||||
pm2 l &>/dev/null
|
||||
|
||||
patch_version &>/dev/null
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ map $http_upgrade $connection_upgrade {
|
||||
|
||||
server {
|
||||
listen 5700;
|
||||
listen [::]:5700 ipv6only=on;
|
||||
IPV6_CONFIG
|
||||
root /ql/static/dist;
|
||||
ssl_session_timeout 5m;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user