From d3440ccb1b397e17f6d662a231e5a87557462cd7 Mon Sep 17 00:00:00 2001 From: Aljaz Ceru Date: Tue, 19 Aug 2025 10:25:11 +0200 Subject: [PATCH] renaming --- backend/app/__init__.py | 6 +- backend/app/core/config.py | 6 +- backend/app/db/database.py | 4 +- backend/app/main.py | 6 +- backend/modules/chatbot/__init__.py | 2 +- backend/modules/chatbot/main.py | 2 +- backend/modules/chatbot/module.yaml | 2 +- backend/tests/performance/performance_test.py | 4 +- backend/tests/performance/quick_perf_test.py | 4 +- docker-compose.yml | 78 +++++++++---------- frontend/next.config.js | 2 +- frontend/package-lock.json | 4 +- frontend/package.json | 2 +- .../src/app/api/chatbot/[id]/api-key/route.ts | 2 +- frontend/src/app/api/chatbot/chat/route.ts | 2 +- frontend/src/app/api/chatbot/create/route.ts | 2 +- .../src/app/api/chatbot/delete/[id]/route.ts | 2 +- frontend/src/app/api/chatbot/list/route.ts | 2 +- frontend/src/app/api/chatbot/types/route.ts | 2 +- .../src/app/api/chatbot/update/[id]/route.ts | 2 +- .../api/llm/api-keys/[id]/regenerate/route.ts | 2 +- .../src/app/api/llm/api-keys/[id]/route.ts | 2 +- frontend/src/app/api/llm/api-keys/route.ts | 2 +- frontend/src/app/api/llm/budgets/route.ts | 2 +- frontend/src/app/api/llm/models/route.ts | 2 +- .../app/api/prompt-templates/create/route.ts | 2 +- .../app/api/prompt-templates/improve/route.ts | 2 +- .../templates/[type_key]/reset/route.ts | 2 +- .../templates/[type_key]/route.ts | 2 +- .../api/prompt-templates/templates/route.ts | 2 +- .../api/prompt-templates/variables/route.ts | 2 +- .../src/app/api/rag/collections/[id]/route.ts | 2 +- frontend/src/app/api/rag/collections/route.ts | 2 +- .../api/rag/documents/[id]/download/route.ts | 2 +- .../src/app/api/rag/documents/[id]/route.ts | 2 +- frontend/src/app/api/rag/documents/route.ts | 2 +- frontend/src/app/api/rag/stats/route.ts | 2 +- frontend/src/app/api/workflows/[id]/route.ts | 2 +- .../src/app/api/workflows/execute/route.ts | 2 +- .../workflows/executions/[id]/cancel/route.ts | 2 +- .../src/app/api/workflows/executions/route.ts | 2 +- .../src/app/api/workflows/import/route.ts | 2 +- frontend/src/app/api/workflows/route.ts | 2 +- .../app/api/workflows/templates/[id]/route.ts | 2 +- .../src/app/api/workflows/templates/route.ts | 2 +- frontend/src/app/api/workflows/test/route.ts | 2 +- frontend/src/app/dashboard/page.tsx | 2 +- frontend/src/app/layout.tsx | 12 +-- frontend/src/app/llm/page.tsx | 4 +- frontend/src/app/login/page.tsx | 6 +- frontend/src/app/page.tsx | 12 +-- frontend/src/components/ui/navigation.tsx | 2 +- 52 files changed, 113 insertions(+), 113 deletions(-) diff --git a/backend/app/__init__.py b/backend/app/__init__.py index 057f447..4913f7a 100644 --- a/backend/app/__init__.py +++ b/backend/app/__init__.py @@ -1,7 +1,7 @@ """ -Confidential Empire - Modular AI Gateway Platform +Enclava - Modular AI Platform """ __version__ = "1.0.0" -__author__ = "Confidential Empire Team" -__description__ = "Modular AI Gateway Platform with confidential AI processing" \ No newline at end of file +__author__ = "Enclava Team" +__description__ = "Enclava - Modular AI Platform with confidential processing" \ No newline at end of file diff --git a/backend/app/core/config.py b/backend/app/core/config.py index e34810e..62a1011 100644 --- a/backend/app/core/config.py +++ b/backend/app/core/config.py @@ -12,7 +12,7 @@ class Settings(BaseSettings): """Application settings""" # Application - APP_NAME: str = "Shifra" + APP_NAME: str = "Enclava" APP_DEBUG: bool = False APP_LOG_LEVEL: str = "INFO" APP_HOST: str = "0.0.0.0" @@ -33,7 +33,7 @@ class Settings(BaseSettings): ACCESS_TOKEN_EXPIRE_MINUTES: int = 30 REFRESH_TOKEN_EXPIRE_MINUTES: int = 60 * 24 * 7 # 7 days SESSION_EXPIRE_MINUTES: int = 60 * 24 # 24 hours - API_KEY_PREFIX: str = "ce_" + API_KEY_PREFIX: str = "en_" # Admin user provisioning ADMIN_USER: str = "admin" @@ -45,7 +45,7 @@ class Settings(BaseSettings): # LiteLLM LITELLM_BASE_URL: str = "http://localhost:4000" - LITELLM_MASTER_KEY: str = "empire-master-key" + LITELLM_MASTER_KEY: str = "enclava-master-key" # API Keys for LLM providers OPENAI_API_KEY: Optional[str] = None diff --git a/backend/app/db/database.py b/backend/app/db/database.py index f75fd54..ce95169 100644 --- a/backend/app/db/database.py +++ b/backend/app/db/database.py @@ -26,7 +26,7 @@ engine = create_async_engine( connect_args={ "command_timeout": 5, "server_settings": { - "application_name": "shifra_backend", + "application_name": "enclava_backend", }, }, ) @@ -49,7 +49,7 @@ sync_engine = create_engine( pool_recycle=3600, # Recycle connections every hour pool_timeout=30, # Max time to get connection from pool connect_args={ - "application_name": "shifra_backend_sync", + "application_name": "enclava_backend_sync", }, ) diff --git a/backend/app/main.py b/backend/app/main.py index 4491d72..72aa7b5 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -36,7 +36,7 @@ async def lifespan(app: FastAPI): """ Application lifespan handler """ - logger.info("Starting Confidential Empire platform...") + logger.info("Starting Enclava platform...") # Initialize database await init_db() @@ -85,7 +85,7 @@ async def lifespan(app: FastAPI): # Create FastAPI application app = FastAPI( title=settings.APP_NAME, - description="Modular AI Gateway Platform with confidential AI processing", + description="Enclava - Modular AI Platform with confidential processing", version="1.0.0", openapi_url="/api/v1/openapi.json", docs_url="/api/v1/docs", @@ -201,7 +201,7 @@ async def health_check(): async def root(): """Root endpoint""" return { - "message": "Confidential Empire - Modular AI Gateway Platform", + "message": "Enclava - Modular AI Platform", "version": "1.0.0", "docs": "/api/v1/docs", } diff --git a/backend/modules/chatbot/__init__.py b/backend/modules/chatbot/__init__.py index 11c7d61..5131eeb 100644 --- a/backend/modules/chatbot/__init__.py +++ b/backend/modules/chatbot/__init__.py @@ -12,7 +12,7 @@ This module provides AI chatbot capabilities with: from .main import ChatbotModule, create_module __version__ = "1.0.0" -__author__ = "AI Gateway Team" +__author__ = "Enclava Team" # Export main classes for easy importing __all__ = [ diff --git a/backend/modules/chatbot/main.py b/backend/modules/chatbot/main.py index 4c79b28..68a7fb5 100644 --- a/backend/modules/chatbot/main.py +++ b/backend/modules/chatbot/main.py @@ -803,7 +803,7 @@ class ChatbotModule(BaseModule): try: # Try to verify the collection exists in Qdrant from qdrant_client import QdrantClient - qdrant_client = QdrantClient(host="shifra-qdrant", port=6333) + qdrant_client = QdrantClient(host="enclava-qdrant", port=6333) collections = qdrant_client.get_collections() collection_names = [c.name for c in collections.collections] diff --git a/backend/modules/chatbot/module.yaml b/backend/modules/chatbot/module.yaml index b7eb860..5beeb91 100644 --- a/backend/modules/chatbot/module.yaml +++ b/backend/modules/chatbot/module.yaml @@ -1,7 +1,7 @@ name: chatbot version: 1.0.0 description: "AI Chatbot with RAG integration and customizable prompts" -author: "AI Gateway Team" +author: "Enclava Team" category: "conversation" # Module lifecycle diff --git a/backend/tests/performance/performance_test.py b/backend/tests/performance/performance_test.py index 9d09889..481ca5f 100644 --- a/backend/tests/performance/performance_test.py +++ b/backend/tests/performance/performance_test.py @@ -13,8 +13,8 @@ from typing import Dict, List, Tuple # Test configuration PLATFORM_URL = "http://localhost:58000/api/v1/llm/chat/completions" LITELLM_URL = "http://localhost:54000/chat/completions" -API_KEY = "ce_mMJNyEznKHJRvvNyyuwuQotuWJ2BvdD8" -LITELLM_KEY = "shifra-master-key" # From docker-compose.yml +API_KEY = "en_mMJNyEznKHJRvvNyyuwuQotuWJ2BvdD8" +LITELLM_KEY = "enclava-master-key" # From docker-compose.yml TEST_PROMPT = "What is the capital of France? Give a brief answer." MODEL = "ollama-deepseek-r1" diff --git a/backend/tests/performance/quick_perf_test.py b/backend/tests/performance/quick_perf_test.py index 314cdf8..6792f0d 100644 --- a/backend/tests/performance/quick_perf_test.py +++ b/backend/tests/performance/quick_perf_test.py @@ -8,8 +8,8 @@ import requests import json # Configuration -API_KEY = "ce_mMJNyEznKHJRvvNyyuwuQotuWJ2BvdD8" -LITELLM_KEY = "shifra-master-key" +API_KEY = "en_mMJNyEznKHJRvvNyyuwuQotuWJ2BvdD8" +LITELLM_KEY = "enclava-master-key" TEST_PROMPT = "What is 2+2? Answer briefly." MODEL = "ollama-deepseek-r1" diff --git a/docker-compose.yml b/docker-compose.yml index bc4e3d1..a10642e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,26 +1,26 @@ -name: shifra +name: enclava services: # Main application backend - shifra-backend: + enclava-backend: build: context: ./backend dockerfile: Dockerfile environment: - - DATABASE_URL=postgresql://shifra_user:shifra_pass@shifra-postgres:5432/shifra_db - - REDIS_URL=redis://shifra-redis:6379 - - QDRANT_HOST=shifra-qdrant + - DATABASE_URL=postgresql://enclava_user:enclava_pass@enclava-postgres:5432/enclava_db + - REDIS_URL=redis://enclava-redis:6379 + - QDRANT_HOST=enclava-qdrant - LITELLM_BASE_URL=http://litellm-proxy:4000 - - LITELLM_MASTER_KEY=${LITELLM_MASTER_KEY:-shifra-master-key} + - LITELLM_MASTER_KEY=${LITELLM_MASTER_KEY:-enclava-master-key} - JWT_SECRET=${JWT_SECRET:-your-jwt-secret-here} - PRIVATEMODE_API_KEY=${PRIVATEMODE_API_KEY:-} - ADMIN_USER=${ADMIN_USER:-admin} - ADMIN_PASSWORD=${ADMIN_PASSWORD:-admin123} - LOG_LLM_PROMPTS=${LOG_LLM_PROMPTS:-false} depends_on: - - shifra-postgres - - shifra-redis - - shifra-qdrant + - enclava-postgres + - enclava-redis + - enclava-qdrant - litellm-proxy ports: - "58000:8000" @@ -28,51 +28,51 @@ services: - ./backend:/app - ./logs:/app/logs networks: - - conf-ai-net + - enclava-net restart: unless-stopped # Next.js frontend - shifra-frontend: + enclava-frontend: image: node:18-alpine working_dir: /app command: sh -c "npm install && npm run dev" environment: - NEXT_PUBLIC_API_URL=http://localhost:58000 - NEXT_PUBLIC_WS_URL=ws://localhost:58000 - - INTERNAL_API_URL=http://shifra-backend:8000 + - INTERNAL_API_URL=http://enclava-backend:8000 depends_on: - - shifra-backend + - enclava-backend ports: - "53000:3000" volumes: - ./frontend:/app - /app/node_modules networks: - - conf-ai-net + - enclava-net restart: unless-stopped # PostgreSQL database - shifra-postgres: + enclava-postgres: image: postgres:16 environment: - - POSTGRES_DB=shifra_db - - POSTGRES_USER=shifra_user - - POSTGRES_PASSWORD=shifra_pass + - POSTGRES_DB=enclava_db + - POSTGRES_USER=enclava_user + - POSTGRES_PASSWORD=enclava_pass volumes: - - shifra-postgres-data:/var/lib/postgresql/data + - enclava-postgres-data:/var/lib/postgresql/data - ./backend/migrations:/docker-entrypoint-initdb.d networks: - - conf-ai-net + - enclava-net restart: unless-stopped # Redis for caching and message queue - shifra-redis: + enclava-redis: image: redis:7-alpine command: redis-server --appendonly yes volumes: - - shifra-redis-data:/data + - enclava-redis-data:/data networks: - - conf-ai-net + - enclava-net restart: unless-stopped # LiteLLM proxy for unified LLM API @@ -81,9 +81,9 @@ services: environment: - UI_USERNAME=admin - UI_PASSWORD=${LITELLM_UI_PASSWORD:-admin123} - - DATABASE_URL=postgresql://shifra_user:shifra_pass@shifra-postgres:5432/shifra_db + - DATABASE_URL=postgresql://enclava_user:enclava_pass@enclava-postgres:5432/enclava_db - OPENROUTER_API_KEY=${OPENROUTER_API_KEY} - #- OLLAMA_BASE_URL=http://shifra-ollama-proxy:11434/v1 + #- OLLAMA_BASE_URL=http://enclava-ollama-proxy:11434/v1 #- OLLAMA_API_KEY=ollama - PRIVATEMODE_API_KEY=${PRIVATEMODE_API_KEY:-} - LITELLM_MASTER_KEY=${LITELLM_MASTER_KEY} @@ -92,15 +92,15 @@ services: - ./litellm_config.yaml:/app/config.yaml command: --config /app/config.yaml --port 4000 --num_workers 1 depends_on: - - shifra-postgres + - enclava-postgres ports: - "54000:4000" networks: - - conf-ai-net + - enclava-net restart: unless-stopped # Ollama Free Model Proxy - #shifra-ollama-proxy: + #enclava-ollama-proxy: # build: # context: /home/lio/cloud/code/ollama-free-model-proxy # dockerfile: Dockerfile @@ -109,10 +109,10 @@ services: # - FREE_MODE=true # - TOOL_USE_ONLY=false # volumes: - # - shifra-ollama-data:/data + # - enclava-ollama-data:/data # working_dir: /data # networks: - # - conf-ai-net + # - enclava-net # restart: unless-stopped #healthcheck: # test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:11434/"] @@ -122,7 +122,7 @@ services: # start_period: 40s # Qdrant vector database - shifra-qdrant: + enclava-qdrant: image: qdrant/qdrant:latest environment: - QDRANT__SERVICE__HTTP_PORT=6333 @@ -131,9 +131,9 @@ services: - "56333:6333" # HTTP API and Web Interface - "56334:6334" # GRPC API (optional) volumes: - - shifra-qdrant-data:/qdrant/storage + - enclava-qdrant-data:/qdrant/storage networks: - - conf-ai-net + - enclava-net restart: unless-stopped # Privatemode.ai service (optional - for confidential models) @@ -151,15 +151,15 @@ services: ports: - "58080:8080" networks: - - conf-ai-net + - enclava-net restart: unless-stopped volumes: - shifra-postgres-data: - shifra-redis-data: - shifra-qdrant-data: -# shifra-ollama-data: + enclava-postgres-data: + enclava-redis-data: + enclava-qdrant-data: +# enclava-ollama-data: networks: - conf-ai-net: + enclava-net: driver: bridge diff --git a/frontend/next.config.js b/frontend/next.config.js index f5ea128..ffec3ee 100644 --- a/frontend/next.config.js +++ b/frontend/next.config.js @@ -6,7 +6,7 @@ const nextConfig = { }, env: { NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8000', - NEXT_PUBLIC_APP_NAME: process.env.NEXT_PUBLIC_APP_NAME || 'AI Gateway', + NEXT_PUBLIC_APP_NAME: process.env.NEXT_PUBLIC_APP_NAME || 'Enclava', }, async headers() { return [ diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 1323eac..f96171c 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,11 +1,11 @@ { - "name": "ai-gateway-frontend", + "name": "enclava-frontend", "version": "0.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "ai-gateway-frontend", + "name": "enclava-frontend", "version": "0.1.0", "dependencies": { "@hookform/resolvers": "^3.3.2", diff --git a/frontend/package.json b/frontend/package.json index 838f157..5288955 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,5 +1,5 @@ { - "name": "ai-gateway-frontend", + "name": "enclava-frontend", "version": "0.1.0", "private": true, "scripts": { diff --git a/frontend/src/app/api/chatbot/[id]/api-key/route.ts b/frontend/src/app/api/chatbot/[id]/api-key/route.ts index 35e4ac3..217734b 100644 --- a/frontend/src/app/api/chatbot/[id]/api-key/route.ts +++ b/frontend/src/app/api/chatbot/[id]/api-key/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' -const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://shifra-backend:8000' +const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://enclava-backend:8000' export async function POST( request: NextRequest, diff --git a/frontend/src/app/api/chatbot/chat/route.ts b/frontend/src/app/api/chatbot/chat/route.ts index 49f2e37..6aab152 100644 --- a/frontend/src/app/api/chatbot/chat/route.ts +++ b/frontend/src/app/api/chatbot/chat/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' -const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://shifra-backend:8000' +const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://enclava-backend:8000' const REQUEST_TIMEOUT = 30000 // 30 seconds interface ChatRequestBody { diff --git a/frontend/src/app/api/chatbot/create/route.ts b/frontend/src/app/api/chatbot/create/route.ts index f65658a..20e36a5 100644 --- a/frontend/src/app/api/chatbot/create/route.ts +++ b/frontend/src/app/api/chatbot/create/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' -const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://shifra-backend:8000' +const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://enclava-backend:8000' export async function POST(request: NextRequest) { try { diff --git a/frontend/src/app/api/chatbot/delete/[id]/route.ts b/frontend/src/app/api/chatbot/delete/[id]/route.ts index 214835a..104f64e 100644 --- a/frontend/src/app/api/chatbot/delete/[id]/route.ts +++ b/frontend/src/app/api/chatbot/delete/[id]/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' -const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://shifra-backend:8000' +const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://enclava-backend:8000' export async function DELETE( request: NextRequest, diff --git a/frontend/src/app/api/chatbot/list/route.ts b/frontend/src/app/api/chatbot/list/route.ts index b140014..fdbd484 100644 --- a/frontend/src/app/api/chatbot/list/route.ts +++ b/frontend/src/app/api/chatbot/list/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' -const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://shifra-backend:8000' +const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://enclava-backend:8000' export async function GET(request: NextRequest) { try { diff --git a/frontend/src/app/api/chatbot/types/route.ts b/frontend/src/app/api/chatbot/types/route.ts index 8183ce0..b91d526 100644 --- a/frontend/src/app/api/chatbot/types/route.ts +++ b/frontend/src/app/api/chatbot/types/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' -const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://shifra-backend:8000' +const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://enclava-backend:8000' export async function GET(request: NextRequest) { try { diff --git a/frontend/src/app/api/chatbot/update/[id]/route.ts b/frontend/src/app/api/chatbot/update/[id]/route.ts index 8bef4b8..89e14b3 100644 --- a/frontend/src/app/api/chatbot/update/[id]/route.ts +++ b/frontend/src/app/api/chatbot/update/[id]/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' -const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://shifra-backend:8000' +const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://enclava-backend:8000' export async function PUT( request: NextRequest, diff --git a/frontend/src/app/api/llm/api-keys/[id]/regenerate/route.ts b/frontend/src/app/api/llm/api-keys/[id]/regenerate/route.ts index 3588af5..65eb3c4 100644 --- a/frontend/src/app/api/llm/api-keys/[id]/regenerate/route.ts +++ b/frontend/src/app/api/llm/api-keys/[id]/regenerate/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' -const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://shifra-backend:8000' +const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://enclava-backend:8000' export async function POST( request: NextRequest, diff --git a/frontend/src/app/api/llm/api-keys/[id]/route.ts b/frontend/src/app/api/llm/api-keys/[id]/route.ts index 96723c7..a5a8f22 100644 --- a/frontend/src/app/api/llm/api-keys/[id]/route.ts +++ b/frontend/src/app/api/llm/api-keys/[id]/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' -const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://shifra-backend:8000' +const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://enclava-backend:8000' export async function DELETE( request: NextRequest, diff --git a/frontend/src/app/api/llm/api-keys/route.ts b/frontend/src/app/api/llm/api-keys/route.ts index 17865ee..59b6566 100644 --- a/frontend/src/app/api/llm/api-keys/route.ts +++ b/frontend/src/app/api/llm/api-keys/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' -const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://shifra-backend:8000' +const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://enclava-backend:8000' export async function GET(request: NextRequest) { try { diff --git a/frontend/src/app/api/llm/budgets/route.ts b/frontend/src/app/api/llm/budgets/route.ts index f437eff..032abd1 100644 --- a/frontend/src/app/api/llm/budgets/route.ts +++ b/frontend/src/app/api/llm/budgets/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' -const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://shifra-backend:8000' +const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://enclava-backend:8000' export async function GET(request: NextRequest) { try { diff --git a/frontend/src/app/api/llm/models/route.ts b/frontend/src/app/api/llm/models/route.ts index c1a7ee2..190d8b8 100644 --- a/frontend/src/app/api/llm/models/route.ts +++ b/frontend/src/app/api/llm/models/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from "next/server" -const BACKEND_URL = process.env.INTERNAL_API_URL || "http://shifra-backend:8000" +const BACKEND_URL = process.env.INTERNAL_API_URL || "http://enclava-backend:8000" export async function GET(request: NextRequest) { try { diff --git a/frontend/src/app/api/prompt-templates/create/route.ts b/frontend/src/app/api/prompt-templates/create/route.ts index 67df970..997b303 100644 --- a/frontend/src/app/api/prompt-templates/create/route.ts +++ b/frontend/src/app/api/prompt-templates/create/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' -const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://shifra-backend:8000' +const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://enclava-backend:8000' export async function POST(request: NextRequest) { try { diff --git a/frontend/src/app/api/prompt-templates/improve/route.ts b/frontend/src/app/api/prompt-templates/improve/route.ts index 0de35c3..bdb0171 100644 --- a/frontend/src/app/api/prompt-templates/improve/route.ts +++ b/frontend/src/app/api/prompt-templates/improve/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' -const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://shifra-backend:8000' +const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://enclava-backend:8000' export async function POST(request: NextRequest) { try { diff --git a/frontend/src/app/api/prompt-templates/templates/[type_key]/reset/route.ts b/frontend/src/app/api/prompt-templates/templates/[type_key]/reset/route.ts index 75676b1..19bcfd3 100644 --- a/frontend/src/app/api/prompt-templates/templates/[type_key]/reset/route.ts +++ b/frontend/src/app/api/prompt-templates/templates/[type_key]/reset/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' -const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://shifra-backend:8000' +const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://enclava-backend:8000' export async function POST( request: NextRequest, diff --git a/frontend/src/app/api/prompt-templates/templates/[type_key]/route.ts b/frontend/src/app/api/prompt-templates/templates/[type_key]/route.ts index df22b2e..78de62d 100644 --- a/frontend/src/app/api/prompt-templates/templates/[type_key]/route.ts +++ b/frontend/src/app/api/prompt-templates/templates/[type_key]/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' -const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://shifra-backend:8000' +const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://enclava-backend:8000' export async function PUT( request: NextRequest, diff --git a/frontend/src/app/api/prompt-templates/templates/route.ts b/frontend/src/app/api/prompt-templates/templates/route.ts index e88a667..49afaac 100644 --- a/frontend/src/app/api/prompt-templates/templates/route.ts +++ b/frontend/src/app/api/prompt-templates/templates/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' -const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://shifra-backend:8000' +const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://enclava-backend:8000' export async function GET(request: NextRequest) { try { diff --git a/frontend/src/app/api/prompt-templates/variables/route.ts b/frontend/src/app/api/prompt-templates/variables/route.ts index 6fd7423..9d6c559 100644 --- a/frontend/src/app/api/prompt-templates/variables/route.ts +++ b/frontend/src/app/api/prompt-templates/variables/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' -const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://shifra-backend:8000' +const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://enclava-backend:8000' export async function GET(request: NextRequest) { try { diff --git a/frontend/src/app/api/rag/collections/[id]/route.ts b/frontend/src/app/api/rag/collections/[id]/route.ts index c6b8396..638ec33 100644 --- a/frontend/src/app/api/rag/collections/[id]/route.ts +++ b/frontend/src/app/api/rag/collections/[id]/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' -const BACKEND_URL = process.env.BACKEND_URL || 'http://shifra-backend:8000' +const BACKEND_URL = process.env.BACKEND_URL || 'http://enclava-backend:8000' export async function DELETE( request: NextRequest, diff --git a/frontend/src/app/api/rag/collections/route.ts b/frontend/src/app/api/rag/collections/route.ts index 701c433..a7ae664 100644 --- a/frontend/src/app/api/rag/collections/route.ts +++ b/frontend/src/app/api/rag/collections/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' -const BACKEND_URL = process.env.BACKEND_URL || 'http://shifra-backend:8000' +const BACKEND_URL = process.env.BACKEND_URL || 'http://enclava-backend:8000' export async function GET(request: NextRequest) { try { diff --git a/frontend/src/app/api/rag/documents/[id]/download/route.ts b/frontend/src/app/api/rag/documents/[id]/download/route.ts index aa112a2..8fa0448 100644 --- a/frontend/src/app/api/rag/documents/[id]/download/route.ts +++ b/frontend/src/app/api/rag/documents/[id]/download/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' -const BACKEND_URL = process.env.BACKEND_URL || 'http://shifra-backend:8000' +const BACKEND_URL = process.env.BACKEND_URL || 'http://enclava-backend:8000' export async function GET( request: NextRequest, diff --git a/frontend/src/app/api/rag/documents/[id]/route.ts b/frontend/src/app/api/rag/documents/[id]/route.ts index 1dfc025..96af97f 100644 --- a/frontend/src/app/api/rag/documents/[id]/route.ts +++ b/frontend/src/app/api/rag/documents/[id]/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' -const BACKEND_URL = process.env.BACKEND_URL || 'http://shifra-backend:8000' +const BACKEND_URL = process.env.BACKEND_URL || 'http://enclava-backend:8000' export async function DELETE( request: NextRequest, diff --git a/frontend/src/app/api/rag/documents/route.ts b/frontend/src/app/api/rag/documents/route.ts index 108eb7e..a1e02a3 100644 --- a/frontend/src/app/api/rag/documents/route.ts +++ b/frontend/src/app/api/rag/documents/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' -const BACKEND_URL = process.env.BACKEND_URL || 'http://shifra-backend:8000' +const BACKEND_URL = process.env.BACKEND_URL || 'http://enclava-backend:8000' export async function GET(request: NextRequest) { try { diff --git a/frontend/src/app/api/rag/stats/route.ts b/frontend/src/app/api/rag/stats/route.ts index f067c3a..02fb20a 100644 --- a/frontend/src/app/api/rag/stats/route.ts +++ b/frontend/src/app/api/rag/stats/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' -const BACKEND_URL = process.env.BACKEND_URL || 'http://shifra-backend:8000' +const BACKEND_URL = process.env.BACKEND_URL || 'http://enclava-backend:8000' export async function GET(request: NextRequest) { try { diff --git a/frontend/src/app/api/workflows/[id]/route.ts b/frontend/src/app/api/workflows/[id]/route.ts index 1a7198a..7918f78 100644 --- a/frontend/src/app/api/workflows/[id]/route.ts +++ b/frontend/src/app/api/workflows/[id]/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' -const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://shifra-backend:8000' +const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://enclava-backend:8000' export async function GET( request: NextRequest, diff --git a/frontend/src/app/api/workflows/execute/route.ts b/frontend/src/app/api/workflows/execute/route.ts index ce89672..ca7aad8 100644 --- a/frontend/src/app/api/workflows/execute/route.ts +++ b/frontend/src/app/api/workflows/execute/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' -const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://shifra-backend:8000' +const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://enclava-backend:8000' export async function POST(request: NextRequest) { try { diff --git a/frontend/src/app/api/workflows/executions/[id]/cancel/route.ts b/frontend/src/app/api/workflows/executions/[id]/cancel/route.ts index 0a0957e..73e0f74 100644 --- a/frontend/src/app/api/workflows/executions/[id]/cancel/route.ts +++ b/frontend/src/app/api/workflows/executions/[id]/cancel/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' -const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://shifra-backend:8000' +const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://enclava-backend:8000' export async function POST( request: NextRequest, diff --git a/frontend/src/app/api/workflows/executions/route.ts b/frontend/src/app/api/workflows/executions/route.ts index bbd1d0b..c553a27 100644 --- a/frontend/src/app/api/workflows/executions/route.ts +++ b/frontend/src/app/api/workflows/executions/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' -const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://shifra-backend:8000' +const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://enclava-backend:8000' export async function GET(request: NextRequest) { try { diff --git a/frontend/src/app/api/workflows/import/route.ts b/frontend/src/app/api/workflows/import/route.ts index d0990e8..3969ad2 100644 --- a/frontend/src/app/api/workflows/import/route.ts +++ b/frontend/src/app/api/workflows/import/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' -const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://shifra-backend:8000' +const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://enclava-backend:8000' export async function POST(request: NextRequest) { try { diff --git a/frontend/src/app/api/workflows/route.ts b/frontend/src/app/api/workflows/route.ts index eced20e..c758ba3 100644 --- a/frontend/src/app/api/workflows/route.ts +++ b/frontend/src/app/api/workflows/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' -const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://shifra-backend:8000' +const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://enclava-backend:8000' export async function GET(request: NextRequest) { try { diff --git a/frontend/src/app/api/workflows/templates/[id]/route.ts b/frontend/src/app/api/workflows/templates/[id]/route.ts index 2344d3a..288a3eb 100644 --- a/frontend/src/app/api/workflows/templates/[id]/route.ts +++ b/frontend/src/app/api/workflows/templates/[id]/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' -const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://shifra-backend:8000' +const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://enclava-backend:8000' export async function GET( request: NextRequest, diff --git a/frontend/src/app/api/workflows/templates/route.ts b/frontend/src/app/api/workflows/templates/route.ts index 1cde77a..884bd0a 100644 --- a/frontend/src/app/api/workflows/templates/route.ts +++ b/frontend/src/app/api/workflows/templates/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' -const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://shifra-backend:8000' +const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://enclava-backend:8000' export async function GET(request: NextRequest) { try { diff --git a/frontend/src/app/api/workflows/test/route.ts b/frontend/src/app/api/workflows/test/route.ts index e1f82f6..2c5a3ba 100644 --- a/frontend/src/app/api/workflows/test/route.ts +++ b/frontend/src/app/api/workflows/test/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' -const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://shifra-backend:8000' +const BACKEND_URL = process.env.INTERNAL_API_URL || 'http://enclava-backend:8000' export async function POST(request: NextRequest) { try { diff --git a/frontend/src/app/dashboard/page.tsx b/frontend/src/app/dashboard/page.tsx index 28221ce..07a0061 100644 --- a/frontend/src/app/dashboard/page.tsx +++ b/frontend/src/app/dashboard/page.tsx @@ -205,7 +205,7 @@ function DashboardContent() { Welcome back, {user.name}

- Manage your AI gateway and modules + Manage your Enclava platform and modules