P0-1: 删除 docker-compose-override.yml + deploy-server 两份 workers=2→1(预防性修复,服务器根 compose 已是 workers=1)

This commit is contained in:
Simon
2026-07-17 23:16:40 +08:00
parent 3ed86d5fb3
commit 939de70e48
11412 changed files with 2257596 additions and 145 deletions
+25
View File
@@ -0,0 +1,25 @@
#!/usr/bin/env python3
"""测试 Dify 直接通过 IP 访问"""
import httpx
import asyncio
async def test_by_ip():
async with httpx.AsyncClient(timeout=30) as client:
# 直接通过 IP 访问
print("=== Direct IP: 10.80.0.240 ===")
try:
r = await client.post(
"http://10.80.0.240/v1/chat-messages",
json={"query": "hello", "user": "test"},
headers={
"Authorization": "Bearer app-7jkRkAzvX4QM9v9SM3P8mMEO",
"Content-Type": "application/json"
}
)
print(f"Status: {r.status_code}")
print(f"Response: {r.text[:300]}")
except Exception as e:
print(f"Error: {e}")
if __name__ == "__main__":
asyncio.run(test_by_ip())