feat: 更新配置
Signed-off-by: Caijinglong <cjl_spy@163.com>
This commit is contained in:
parent
13612d1724
commit
f024176d48
@ -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
|
||||
|
||||
@ -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) ? '✅' : '❌';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user