From 1f8a4d5ae3367a9cdbbb5aa984cec9051e848f23 Mon Sep 17 00:00:00 2001 From: alexz Date: Thu, 19 Mar 2026 16:14:00 +0000 Subject: [PATCH] Use symlinked APP_DATA_DIR, add MCP_API_BASE_URL and SHAREPOINT_BASE_URL env vars --- apps/erp-integration/config.json | 16 ++++++++++++++++ apps/erp-integration/docker-compose.json | 12 ++++++++++-- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/apps/erp-integration/config.json b/apps/erp-integration/config.json index 172ca79..8214dbc 100644 --- a/apps/erp-integration/config.json +++ b/apps/erp-integration/config.json @@ -55,6 +55,22 @@ "required": false, "default": "*", "env_variable": "CORS_ORIGIN" + }, + { + "type": "text", + "label": "MCP API Base URL", + "hint": "Base URL for the MCP API server", + "required": false, + "default": "http://localhost:2009", + "env_variable": "MCP_API_BASE_URL" + }, + { + "type": "text", + "label": "SharePoint Base URL", + "hint": "SharePoint/OneDrive URL for Integration Planning documents", + "required": false, + "default": "https://minicircuits-my.sharepoint.com/personal/alex_zaw_minicircuits_com1/_layouts/15/onedrive.aspx?id=%2Fpersonal%2Falex%5Fzaw%5Fminicircuits%5Fcom1%2FDocuments%2FIntegration%20Planning%2F", + "env_variable": "SHAREPOINT_BASE_URL" } ] } diff --git a/apps/erp-integration/docker-compose.json b/apps/erp-integration/docker-compose.json index c0b7ac1..b9f49df 100644 --- a/apps/erp-integration/docker-compose.json +++ b/apps/erp-integration/docker-compose.json @@ -35,16 +35,24 @@ { "key": "PORT", "value": "8001" + }, + { + "key": "MCP_API_BASE_URL", + "value": "${MCP_API_BASE_URL}" + }, + { + "key": "SHAREPOINT_BASE_URL", + "value": "${SHAREPOINT_BASE_URL}" } ], "volumes": [ { - "hostPath": "/home/alexz/ERP-Integration/backend/data", + "hostPath": "${APP_DATA_DIR}/data", "containerPath": "/app/backend/data", "readOnly": false }, { - "hostPath": "/home/alexz/ERP-Integration/backend/uploads", + "hostPath": "${APP_DATA_DIR}/uploads", "containerPath": "/app/backend/uploads", "readOnly": false }