固定Typecho Dockerfile中的PHP版本,改进Nginx安装时配置中的域名过滤
This commit is contained in:
parent
0d4497c5e9
commit
9d4cfb078d
@ -15,7 +15,7 @@ mkdir php
|
||||
mkdir -p nginx/conf
|
||||
|
||||
cat > "./php/Dockerfile" << 'EOF'
|
||||
FROM php:fpm
|
||||
FROM php:8.2-fpm
|
||||
|
||||
# 更新包列表并安装 pdo_mysql 扩展
|
||||
RUN apt-get update && \
|
||||
|
@ -29,7 +29,7 @@ else
|
||||
read -p "请选择:" user_choice
|
||||
bash "$(dirname $(dirname $0))/acme/test.sh"
|
||||
bash "$(dirname $(dirname $0))/acme/apply.sh" "nginx" "${domain_names}"
|
||||
folder_domain=$(ls ${HOME}/.acme.sh/ | grep "${primary_domain}")
|
||||
folder_domain=$(ls ${HOME}/.acme.sh/ | grep "^${primary_domain}" | head -n1)
|
||||
ssl_cert_path="${HOME}/.acme.sh/${folder_domain}/fullchain.cer"
|
||||
ssl_key_path="${HOME}/.acme.sh/${folder_domain}/${primary_domain}.key"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user