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:
|
services:
|
||||||
web:
|
web:
|
||||||
image: common-nginx-fpm-alpine:latest
|
# image: common-nginx-fpm-alpine:latest
|
||||||
|
build: .
|
||||||
container_name: ${PROJECT_NAME:-nginx-fpm-app}
|
container_name: ${PROJECT_NAME:-nginx-fpm-app}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
@ -26,8 +27,8 @@ services:
|
|||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
memory: ${MEMORY_LIMIT:-512M}
|
memory: ${MEMORY_LIMIT:-4096M}
|
||||||
cpus: '${CPU_LIMIT:-1.0}'
|
cpus: '${CPU_LIMIT:-4.0}'
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost/health"]
|
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost/health"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
|
|||||||
@ -115,7 +115,9 @@ $userAgent = $_SERVER['HTTP_USER_AGENT'] ?? 'Unknown';
|
|||||||
<div class="info-card">
|
<div class="info-card">
|
||||||
<h3>🔧 已安装扩展</h3>
|
<h3>🔧 已安装扩展</h3>
|
||||||
<?php
|
<?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) {
|
foreach ($extensions as $ext) {
|
||||||
$status = extension_loaded($ext) ? 'success' : 'info';
|
$status = extension_loaded($ext) ? 'success' : 'info';
|
||||||
$icon = extension_loaded($ext) ? '✅' : '❌';
|
$icon = extension_loaded($ext) ? '✅' : '❌';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user