feat: 更新配置

Signed-off-by: Caijinglong <cjl_spy@163.com>
This commit is contained in:
Caijinglong 2025-06-25 17:51:32 +08:00
parent 13612d1724
commit f024176d48
Signed by: cai
GPG Key ID: 92FBD82121AC80AA
2 changed files with 7 additions and 4 deletions

View File

@ -2,7 +2,8 @@ version: '3.8'
services:
web:
image: common-nginx-fpm-alpine:latest
# image: common-nginx-fpm-alpine:latest
build: .
container_name: ${PROJECT_NAME:-nginx-fpm-app}
restart: unless-stopped
ports:
@ -26,8 +27,8 @@ services:
deploy:
resources:
limits:
memory: ${MEMORY_LIMIT:-512M}
cpus: '${CPU_LIMIT:-1.0}'
memory: ${MEMORY_LIMIT:-4096M}
cpus: '${CPU_LIMIT:-4.0}'
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost/health"]
interval: 30s

View File

@ -115,7 +115,9 @@ $userAgent = $_SERVER['HTTP_USER_AGENT'] ?? 'Unknown';
<div class="info-card">
<h3>🔧 已安装扩展</h3>
<?php
$extensions = ['pdo_mysql', 'pdo_pgsql', 'pgsql', 'mysqli', 'opcache', 'curl', 'json', 'mbstring'];
// $extensions = ['pdo_mysql', 'pdo_pgsql', 'pgsql', 'mysqli', 'opcache', 'curl', 'json', 'mbstring'];
// 读取系统的所有扩展
$extensions = get_loaded_extensions();
foreach ($extensions as $ext) {
$status = extension_loaded($ext) ? 'success' : 'info';
$icon = extension_loaded($ext) ? '✅' : '❌';