Repository navigation
Expand file tree
/
Copy path.env.production.example
More file actions
102 lines (87 loc) · 2.41 KB
/
Copy path.env.production.example
File metadata and controls
102 lines (87 loc) · 2.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# ============================================
# YA-PapersWithCode Production Configuration
# ============================================
# Simplified configuration for production deployment
# Domain: https://papers-with-code.arcane-read.com
# ============================================
# ====================
# CORE SETTINGS
# ====================
# Deployment mode
DEPLOYMENT_MODE=api_mode # Use 'local' for PASA models, 'api_mode' for OpenAI
# Skip downloading PASA models from HuggingFace
SKIP_MODEL_DOWNLOAD=true # Set to false if using local mode
# Environment
NODE_ENV=production
ENVIRONMENT=production
# ====================
# DOMAIN CONFIGURATION
# ====================
DOMAIN=papers-with-code.arcane-read.com
FRONTEND_URL=https://papers-with-code.arcane-read.com
BACKEND_URL=https://papers-with-code.arcane-read.com
API_BASE_URL=https://papers-with-code.arcane-read.com/api/v1
# ====================
# PORT CONFIGURATION
# ====================
# Container internal ports (map these in docker-compose or Nginx Proxy Manager)
BACKEND_PORT=8000
FRONTEND_PORT=3000
REDIS_PORT=6379
# ====================
# OPENAI API (for api_mode)
# ====================
OPENAI_API_KEY=your-openai-api-key-here
MODEL_NAME=gpt-5-mini-2025-08-07
EMBEDDING_MODEL=text-embedding-3-small
MAX_TOKENS=1024
TEMPERATURE=0.5
# ====================
# DATABASE
# ====================
DATABASE_PATH=/app/paperswithcode.db
# ====================
# CORS SETTINGS
# ====================
CORS_ORIGINS=https://papers-with-code.arcane-read.com
# ====================
# SECURITY
# ====================
# IMPORTANT: Generate a secure random key for production!
SECRET_KEY=change-this-to-a-very-long-random-string
# ====================
# CACHE
# ====================
REDIS_ENABLED=true
CACHE_ENABLED=true
CACHE_TTL=3600
# ====================
# SEARCH
# ====================
ENABLE_AGENT_SEARCH=true
MAX_SEARCH_RESULTS=100
USE_PREBUILT_EMBEDDINGS=true
# ====================
# LOGGING
# ====================
LOG_LEVEL=INFO
LOG_FILE=/app/logs/api.log
# ====================
# PERFORMANCE
# ====================
# Workers for production
WEB_CONCURRENCY=4
WORKER_TIMEOUT=120
# ====================
# OPTIONAL FEATURES
# ====================
ENABLE_HEALTH_CHECKS=true
ENABLE_API_DOCS=true
ENABLE_METRICS=false
# ====================
# LOCAL MODE ONLY (if DEPLOYMENT_MODE=local)
# ====================
# MODEL_PATH=checkpoints
# DEVICE=cpu
# TORCH_DTYPE=float32
# USE_MOCK_MODELS=false