Skip to content

Configuration

Ju Lin edited this page Mar 9, 2025 · 2 revisions

Configuration Guide

Environment Variables

The system requires the following environment variables:

# Server configuration
PORT=8001
NODE_ENV=development|production

# Azure Storage
AZURE_STORAGE_CONNECTION_STRING="DefaultEndpointsProtocol=https;AccountName=fusionfly;AccountKey=xxxxx;EndpointSuffix=core.windows.net"
AZURE_STORAGE_CONTAINER_UPLOADS="uploads"
AZURE_STORAGE_CONTAINER_PROCESSED="processed"
AZURE_STORAGE_CONTAINER_RESULTS="results"

# Azure CosmosDB
COSMOS_ENDPOINT="https://fusionfly.documents.azure.com:443/"
COSMOS_KEY="xxxxx"
COSMOS_DATABASE="fusionfly-db"
USE_LOCAL_DB_FALLBACK=false

# Azure OpenAI
AZURE_OPENAI_ENDPOINT=
AZURE_OPENAI_API_KEY=
AZURE_OPENAI_ENGINE=
AZURE_OPENAI_API_VERSION=
AI_ENABLED=true

# Authentication
JWT_SECRET=
JWT_EXPIRES_IN=

# Redis Queue
REDIS_HOST=
REDIS_PORT=

Frontend Configuration

The React frontend requires proxy configuration in package.json matching the backend port:

{
  "name": "gnss-converter-frontend",
  "version": "0.1.0",
  "private": true,
  // ... other properties ...
  "proxy": "http://localhost:8001"
}ss definitions
npm install --save-dev @types/express @types/multer @types/jsonbcrypt

Frontend Dependencies

# Core dependencies
npm install react react-dom react-router-dom axios

# UI components
npm install @heroicons/react

# Development dependencies
npm install --save-dev tailwindcss postcss autoprefixer

Azure Service Configuration

Azure Blob Storage Setup

  1. Create a storage account in Azure Portal
  2. Create three containers:
    • uploads
    • processed
    • results
  3. Get connection string from Access Keys section

Azure CosmosDB Setup

  1. Create a CosmosDB account
  2. Create database "fusionfly-db"
  3. Create container "users" with partition key "/email"
  4. Get endpoint and key from Keys section

Azure OpenAI Setup

  1. Create Azure OpenAI resource
  2. Deploy model
  3. Get endpoint, API key, model deployment name

Clone this wiki locally