-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
36 lines (29 loc) · 1.02 KB
/
.env.example
File metadata and controls
36 lines (29 loc) · 1.02 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
# Server Configuration
PORT=3000
NODE_ENV=production
DOMAIN=html2pdf.brainboxai.io
# API Security - REQUIRED!
API_KEY=html2pdf_your_secret_api_key_here_change_this
API_RATE_LIMIT_MAX=500
# Puppeteer Configuration (Critical for Docker/Dokploy)
PUPPETEER_HEADLESS=true
PUPPETEER_ARGS=--no-sandbox,--disable-setuid-sandbox,--disable-dev-shm-usage,--disable-gpu,--no-zygote,--disable-web-security,--disable-features=VizDisplayCompositor
PUPPETEER_EXECUTABLE_PATH=/usr/bin/google-chrome-stable
PUPPETEER_CACHE_DIR=/usr/src/app/.cache/puppeteer
# Database Configuration
DB_PATH=/usr/src/app/data/invoices.db
# DB_BACKUP_ENABLED=true
# DB_BACKUP_INTERVAL=24
# File Upload Configuration
UPLOAD_MAX_SIZE=5242880
ALLOWED_FILE_TYPES=jpeg,jpg,png,gif
UPLOAD_DIR=/usr/src/app/public/uploads
# Rate Limiting Configuration
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_REQUESTS=100
# Security Configuration
# CORS_ORIGIN=https://html2pdf.brainboxai.io
# ENABLE_HTTPS_REDIRECT=true
# Logging Configuration
# LOG_LEVEL=info
# LOG_FILE=/app/logs/application.log