优化日志

This commit is contained in:
wangbo 2026-01-29 00:16:12 +08:00
parent 398cfa00fc
commit f634e8a7c5
2 changed files with 18 additions and 0 deletions

View File

@ -260,6 +260,15 @@ services:
timeout: 10s
retries: 3
start_period: 40s
dozzle:
container_name: dozzle
image: amir20/dozzle:latest
environment:
DOZZLE_BASE: /logs-web
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 8080:8080
# portainer:
# image: registry.cn-shanghai.aliyuncs.com/comfy-ai/portainer-ce:2.21.5
# container_name: portainer

View File

@ -88,6 +88,15 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;
}
location /logs-web/ {
proxy_pass http://127.0.0.1:8080/logs-web/;
proxy_redirect off;
proxy_set_header X-Original-Prefix '/logs-web';
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;
}
location /socket.io {
proxy_pass http://127.0.0.1:3002;
proxy_read_timeout 300s;