upd devops
This commit is contained in:
parent
9d5331cfa3
commit
f4ee5f8069
38
.env.example
38
.env.example
@ -1,39 +1,43 @@
|
||||
# Database Configuration
|
||||
DATABASE_URL=postgresql+asyncpg://username:password@localhost:5432/hr_ai
|
||||
DATABASE_URL=postgresql+asyncpg://hr_user:hr_password@hr_ai.aiquity.xyz:5432/hr_ai
|
||||
|
||||
# Redis Configuration (for Celery and caching)
|
||||
REDIS_CACHE_URL=localhost
|
||||
# Redis Configuration
|
||||
REDIS_CACHE_URL=redis
|
||||
REDIS_CACHE_PORT=6379
|
||||
REDIS_CACHE_DB=0
|
||||
|
||||
# Milvus Vector Database Configuration
|
||||
MILVUS_URI=http://localhost:19530
|
||||
# Milvus Vector Database
|
||||
MILVUS_URI=http://5.188.159.90:19530
|
||||
MILVUS_COLLECTION=hr_candidate_profiles
|
||||
|
||||
# S3 Storage Configuration (Selectel/AWS/etc)
|
||||
# Selectel S3 Configuration
|
||||
S3_ENDPOINT_URL=https://s3.storage.selcloud.ru
|
||||
S3_ACCESS_KEY_ID=your_s3_access_key
|
||||
S3_SECRET_ACCESS_KEY=your_s3_secret_key
|
||||
S3_BUCKET_NAME=your-bucket-name
|
||||
S3_ACCESS_KEY_ID=0061b12c15f24efcb9fc918ee73579f5
|
||||
S3_SECRET_ACCESS_KEY=bdd43fa402a64fccb1a4758220a259a6
|
||||
S3_BUCKET_NAME=hr-ai
|
||||
S3_REGION=ru-1
|
||||
|
||||
# LLM API Keys
|
||||
OPENAI_API_KEY=sk-your-openai-api-key-here
|
||||
ANTHROPIC_API_KEY=your-anthropic-api-key-here
|
||||
OPENAI_MODEL=gpt-4o-mini
|
||||
OPENAI_API_KEY=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
|
||||
ANTHROPIC_API_KEY=your_anthropic_api_key_here
|
||||
OPENAI_MODEL=gpt-5-mini
|
||||
OPENAI_EMBEDDINGS_MODEL=text-embedding-3-small
|
||||
|
||||
# LiveKit Configuration (for interview feature)
|
||||
LIVEKIT_URL=wss://hackaton-eizc9zqk.livekit.cloud
|
||||
LIVEKIT_API_KEY=devkey
|
||||
LIVEKIT_API_SECRET=devkey_secret_32chars_minimum_length
|
||||
|
||||
CLOUDMERSIVE_API_KEY=96e66e45-d236-4ab3-909d-f1a437d59404
|
||||
LIVEKIT_API_KEY=APIeGb3j9Lwy6mK
|
||||
LIVEKIT_API_SECRET=7nb0gKY97sZ42RneonSnsXwf3RRqL4c1JB6zgAyhqES
|
||||
|
||||
# AI Agent API Keys (for voice interviewer)
|
||||
DEEPGRAM_API_KEY=614bc82c22dfc434cc770647454ca29135f07d6d
|
||||
CARTESIA_API_KEY=sk_car_RNvmSfSt1GTqAsL4w6n65T
|
||||
RESEMBLE_API_KEY=2Vin2UmgAIsv5pK6qFI1Sgtt
|
||||
ELEVENLABS_API_KEY=your-elevenlabs-api-key-here
|
||||
|
||||
# App Configuration
|
||||
APP_ENV=development
|
||||
DEBUG=true
|
||||
|
||||
# Domain for Caddy (use your domain for automatic HTTPS)
|
||||
DOMAIN=hr.aiquity.xyz
|
||||
|
||||
CLOUDMERSIVE_API_KEY=96e66e45-d236-4ab3-909d-f1a437d5940
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
NEXT_PUBLIC_API_BASE_URL=http://localhost:8000/api
|
||||
NEXT_PUBLIC_LIVEKIT_URL=ws://localhost:7880
|
||||
NEXT_PUBLIC_API_BASE_URL=https://hr.aiquity.xyz/api
|
||||
NEXT_PUBLIC_LIVEKIT_URL=wss://hackaton-eizc9zqk.livekit.cloud
|
||||
52
Caddyfile
52
Caddyfile
@ -12,16 +12,6 @@
|
||||
reverse_proxy backend:8000
|
||||
}
|
||||
|
||||
# LiveKit WebSocket and HTTP endpoints
|
||||
handle /livekit/* {
|
||||
reverse_proxy livekit:7880
|
||||
}
|
||||
|
||||
# LiveKit WebSocket upgrade
|
||||
handle /rtc {
|
||||
reverse_proxy livekit:7880
|
||||
}
|
||||
|
||||
# Frontend (SPA) - serve everything else
|
||||
handle {
|
||||
reverse_proxy frontend:3000
|
||||
@ -30,8 +20,6 @@
|
||||
@notapi {
|
||||
not path /api/*
|
||||
not path /health
|
||||
not path /livekit/*
|
||||
not path /rtc
|
||||
file {
|
||||
try_files {path} /index.html
|
||||
}
|
||||
@ -64,43 +52,3 @@
|
||||
format json
|
||||
}
|
||||
}
|
||||
|
||||
# Development/localhost configuration (no HTTPS)
|
||||
localhost {
|
||||
# Backend API routes
|
||||
handle /api/* {
|
||||
reverse_proxy backend:8000
|
||||
}
|
||||
|
||||
# Health check endpoint
|
||||
handle /health {
|
||||
reverse_proxy backend:8000
|
||||
}
|
||||
|
||||
# LiveKit endpoints
|
||||
handle /livekit/* {
|
||||
reverse_proxy livekit:7880
|
||||
}
|
||||
|
||||
handle /rtc {
|
||||
reverse_proxy livekit:7880
|
||||
}
|
||||
|
||||
# Frontend
|
||||
handle {
|
||||
reverse_proxy frontend:3000
|
||||
|
||||
@notapi {
|
||||
not path /api/*
|
||||
not path /health
|
||||
not path /livekit/*
|
||||
not path /rtc
|
||||
file {
|
||||
try_files {path} /index.html
|
||||
}
|
||||
}
|
||||
rewrite @notapi /index.html
|
||||
}
|
||||
|
||||
encode gzip
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user