feat: 升级 openresty 到 1.25.3.2 (#2004)
This commit is contained in:
parent
badacd7c2c
commit
035ca6958b
|
|
@ -1,18 +0,0 @@
|
|||
map "" $empty {
|
||||
default "";
|
||||
}
|
||||
|
||||
server
|
||||
{
|
||||
listen 80;
|
||||
listen 443 ssl http2;
|
||||
server_name _;
|
||||
|
||||
ssl_ciphers aNULL;
|
||||
ssl_certificate data:$empty;
|
||||
ssl_certificate_key data:$empty;
|
||||
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
|
||||
|
||||
index 404.html;
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
server
|
||||
{
|
||||
listen 80;
|
||||
server_name _;
|
||||
|
||||
index 404.html;
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
|
|
@ -0,0 +1,45 @@
|
|||
additionalProperties:
|
||||
formFields:
|
||||
- default: 80
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: HTTP Port
|
||||
labelZh: HTTP 端口
|
||||
required: true
|
||||
type: number
|
||||
label:
|
||||
en: HTTP Port
|
||||
ja: HTTP ポート
|
||||
ms: Port HTTP
|
||||
pt-br: Porta HTTP
|
||||
ru: HTTP Порт
|
||||
zh-Hant: HTTP 端口
|
||||
zh: HTTP 端口
|
||||
- default: 443
|
||||
envKey: PANEL_APP_PORT_HTTPS
|
||||
labelEn: HTTPS Port
|
||||
labelZh: HTTPS 端口
|
||||
required: true
|
||||
type: number
|
||||
label:
|
||||
en: HTTPS Port
|
||||
ja: HTTPS ポート
|
||||
ms: Port HTTPS
|
||||
pt-br: Porta HTTPS
|
||||
ru: HTTPS Порт
|
||||
zh-Hant: HTTPS 端口
|
||||
zh: HTTPS 端口
|
||||
- default: www
|
||||
envKey: WEBSITE_DIR
|
||||
labelEn: Website Dir
|
||||
labelZh: 网站目录(网站目录会放置在 1Panel 安装目录下)
|
||||
required: true
|
||||
type: string
|
||||
label:
|
||||
en: Website directory (The website directory will be placed under the 1Panel installation directory)
|
||||
ja: ウェブサイトディレクトリ(ウェブサイトディレクトリは 1Panel インストールディレクトリに配置されます)
|
||||
ms: Direktori laman web (Direktori laman web akan diletakkan di bawah direktori pemasangan 1Panel)
|
||||
pt-br: Diretório do site (O diretório do site será colocado sob o diretório de instalação do 1Panel)
|
||||
ru: Директория сайта (Директория сайта будет размещена в каталоге установки 1Panel)
|
||||
zh-Hant: 網站目錄(網站目錄將放置在 1Panel 安裝目錄下)
|
||||
zh: 网站目录(网站目录会放置在 1Panel 安装目录下)
|
||||
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
services:
|
||||
openresty:
|
||||
image: 1panel/openresty:1.21.4.3-3-3-focal
|
||||
image: 1panel/openresty:1.25.3.2-0-1-focal
|
||||
container_name: ${CONTAINER_NAME}
|
||||
restart: always
|
||||
network_mode: host
|
||||
|
|
@ -11,7 +11,7 @@ services:
|
|||
- ./conf/mime.types:/usr/local/openresty/nginx/conf/mime.types
|
||||
- ./log:/var/log/nginx
|
||||
- ./conf/conf.d:/usr/local/openresty/nginx/conf/conf.d/
|
||||
- ./www:/www
|
||||
- ${WEBSITE_DIR}:/www
|
||||
- ./root:/usr/share/nginx/html
|
||||
- /etc/localtime:/etc/localtime
|
||||
- ./1pwaf/data:/usr/local/openresty/1pwaf/data
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ -f ./.env ]]; then
|
||||
if grep -q 'WEBSITE_DIR' ./.env; then
|
||||
echo "WEBSITE_DIR 参数已存在"
|
||||
else
|
||||
echo 'WEBSITE_DIR="./www"' >> ./.env
|
||||
echo "已添加 WEBSITE_DIR=./www"
|
||||
fi
|
||||
else
|
||||
echo ".env 文件不存在"
|
||||
fi
|
||||
Loading…
Reference in New Issue