适配新的文件上传

This commit is contained in:
wangbo 2025-07-04 18:57:58 +08:00
parent b40d1264f9
commit 96657ed5cf
3 changed files with 25 additions and 2 deletions

6
.env
View File

@ -20,7 +20,7 @@ WEB_PORT=3010
REDIS_PORT=
#MONGO 暴露端口,默认不暴露。用户名密码初次部署可以修改,更新请勿修改
MONGO_PORT=
MONGO_PORT=27017
MONGO_INITDB_ROOT_USERNAME=username
MONGO_INITDB_ROOT_PASSWORD=password
#comfy-server后端web服务暴露端口。一般情况下无需修改
@ -44,6 +44,10 @@ CONFIG_TOKEN_EXPIRE=1800
CONFIG_JWT_SECRET='this is a very secret secret'
#minio
#MINIO_ROOT_USER=minioadmin
#MINIO_ROOT_PASSWORD=minioadmin

View File

@ -47,7 +47,7 @@ services:
ports:
- "${SERVER_HTTP_PORT}:3001" #http端口
- "${SERVER_WS_PORT}:3002" #websocket端口
read_only: true
# read_only: true
networks:
comfyai:
ipv4_address: 172.21.0.6
@ -147,6 +147,24 @@ services:
# - "${PORTAINER_PORT}:9000"
# - "${PORTAINER_HTTPS_PORT}:9443"
read_only: true
# minio:
# # image: minio/minio
# image: registry.cn-shanghai.aliyuncs.com/comfy-ai/minio:latest
# ports:
# - "9000:9000"
# - "9001:9001" # MinIO Console (UI) 端口
# volumes:
# - ./data:/data # **修改这里:将 ./data 替换为你的本地路径**
# environment:
# MINIO_ROOT_USER: ${MINIO_ROOT_USER}
# MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD} # 生产环境请务必修改
# command: server /data --console-address ":9001"
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
# interval: 30s
# timeout: 20s
# retries: 3
# restart: always
volumes:
mongo_data:
portainer_data:

View File

@ -72,6 +72,7 @@ server {
proxy_http_version 1.1; # 推荐使用 HTTP/1.1
proxy_set_header Accept-Encoding ''; # 可选防止上游压缩导致缓冲如果后端有gzip等压缩可能会影响流式输出
# --- SSE 关键配置结束 ---
proxy_set_header X-Original-Prefix '/api';
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;