优化日志
This commit is contained in:
parent
398cfa00fc
commit
f634e8a7c5
@ -260,6 +260,15 @@ services:
|
|||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
start_period: 40s
|
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:
|
# portainer:
|
||||||
# image: registry.cn-shanghai.aliyuncs.com/comfy-ai/portainer-ce:2.21.5
|
# image: registry.cn-shanghai.aliyuncs.com/comfy-ai/portainer-ce:2.21.5
|
||||||
# container_name: portainer
|
# container_name: portainer
|
||||||
|
|||||||
@ -88,6 +88,15 @@ server {
|
|||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_set_header Host $host;
|
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 {
|
location /socket.io {
|
||||||
proxy_pass http://127.0.0.1:3002;
|
proxy_pass http://127.0.0.1:3002;
|
||||||
proxy_read_timeout 300s;
|
proxy_read_timeout 300s;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user