Update: gitignore for Python environment.

This commit is contained in:
2026-06-05 17:27:08 +02:00
parent 07abff2b2f
commit d8145075eb
7 changed files with 230 additions and 3 deletions
+1 -1
View File
@@ -14,4 +14,4 @@ COPY config/ /app/config/
# Default environment variables
ENV CONFIG_PATH=/app/config/gateway.json
CMD ["uvicorn", "router:app", "--host", "0.0.0.0", "--port", "3000", "--log-level", "info", "--timeout-keep-alive", "120", "--limit-concurrency", "10"]
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "3000", "--log-level", "info", "--timeout-keep-alive", "120", "--limit-concurrency", "10"]
View File
View File
+8 -2
View File
@@ -1,15 +1,21 @@
import json
import logging
import os
logger = logging.getLogger(__name__)
def load_gateway_config():
config_path = os.getenv(
"CONFIG_PATH",
"config/gateway.json"
)
try:
with open(
"/app/config/gateway.json",
config_path,
"r"
) as f:
@@ -18,7 +24,7 @@ def load_gateway_config():
except Exception:
logger.exception(
"Gateway Config konnte nicht geladen werden"
f"Gateway Config konnte nicht geladen werden: {config_path}"
)
return {"mcpServers": {}}
View File