Update: gitignore for Python environment.
This commit is contained in:
@@ -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"]
|
||||
|
||||
@@ -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": {}}
|
||||
|
||||
Reference in New Issue
Block a user