diff --git a/backend/api-gateway/nginx/install-mpc-grpc.sh b/backend/api-gateway/nginx/install-mpc-grpc.sh index 29bf74f3..774f84f8 100644 --- a/backend/api-gateway/nginx/install-mpc-grpc.sh +++ b/backend/api-gateway/nginx/install-mpc-grpc.sh @@ -69,8 +69,9 @@ check_prerequisites() { configure_http() { log_info "步骤 1/4: 创建临时 HTTP 配置..." - # 确保 certbot webroot 目录存在 - mkdir -p /var/www/certbot + # 确保 certbot webroot 目录及子目录存在 + mkdir -p /var/www/certbot/.well-known/acme-challenge + chmod -R 755 /var/www/certbot # 创建临时 HTTP 配置 cat > /etc/nginx/sites-available/$DOMAIN << EOF