File size: 3,643 Bytes
8520346
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# ============================================
# AutoForm Backend Environment Configuration
# ============================================
# Copy this file to .env and fill in your actual values
# DO NOT commit .env to version control!

# ============================================
# Database Configuration
# ============================================
# SQLite (for development)
DATABASE_URL=sqlite:///./app.db

# PostgreSQL (for production)
# DATABASE_URL=postgresql://user:password@localhost:5432/autoform


# ============================================
# AI Model Configuration (Required)
# ============================================
# Choose ONE of the following providers

# OpenAI
DEFAULT_MODEL=gpt-4o-mini
OPENAI_API_KEY=your_openai_api_key_here

# Anthropic (Claude)
# DEFAULT_MODEL=anthropic/claude-3-5-sonnet-20241022
# ANTHROPIC_API_KEY=your_anthropic_api_key_here

# Google (Gemini)
# DEFAULT_MODEL=gemini/gemini-1.5-flash
# GEMINI_API_KEY=your_gemini_api_key_here


# ============================================
# Frontend URL
# ============================================
FRONTEND_URL=http://localhost:5173


# ============================================
# Google OAuth (Required for Authentication)
# ============================================
GOOGLE_CLIENT_ID=your_google_client_id_here
GOOGLE_CLIENT_SECRET=your_google_client_secret_here
GOOGLE_REDIRECT_URI=http://localhost:8000/api/auth/google/callback


# ============================================
# Session Configuration
# ============================================
SESSION_SECRET=change-this-to-a-random-secret-key
SESSION_HTTPS_ONLY=0


# ============================================
# Stripe Payment Configuration (Optional)
# ============================================
STRIPE_SECRET_KEY=sk_test_your_stripe_secret_key
STRIPE_WEBHOOK_SECRET=whsec_your_webhook_secret

# Stripe Product IDs
STRIPE_FREE_PRODUCT_ID=prod_free
STRIPE_PRO_PRODUCT_ID=prod_pro
STRIPE_ULTRA_PRODUCT_ID=prod_ultra

# Stripe Price IDs - Monthly
STRIPE_FREE_PRICE_MONTHLY_ID=price_free_monthly
STRIPE_PRO_PRICE_MONTHLY_ID=price_pro_monthly
STRIPE_ULTRA_PRICE_MONTHLY_ID=price_ultra_monthly

# Stripe Price IDs - Yearly
STRIPE_FREE_PRICE_YEARLY_ID=price_free_yearly
STRIPE_PRO_PRICE_YEARLY_ID=price_pro_yearly
STRIPE_ULTRA_PRICE_YEARLY_ID=price_ultra_yearly


# ============================================
# Email Service Configuration (Optional)
# ============================================
EMAIL_PROVIDER=unosend
UNOSEND_API_KEY=your_unosend_api_key_here
EMAIL_FROM_ADDRESS=noreply@autoform.ink
SUPPORT_EMAIL=support@autoform.ink


# ============================================
# AWS S3 Configuration (Optional - for file uploads)
# ============================================
AWS_ACCESS_KEY_ID=your_aws_access_key
AWS_SECRET_ACCESS_KEY=your_aws_secret_key
AWS_REGION=us-east-1
S3_BUCKET_NAME=your-bucket-name
S3_PREFIX=autoform/dev
APP_ENV=dev


# ============================================
# Database Migration
# ============================================
# Set to 0 to disable automatic database migrations on startup
AUTO_MIGRATE=1


# ============================================
# Notes
# ============================================
# Required for basic functionality:
# - DATABASE_URL (or leave as SQLite for dev)
# - DEFAULT_MODEL + corresponding API key (OPENAI_API_KEY, ANTHROPIC_API_KEY, or GEMINI_API_KEY)
# - GOOGLE_CLIENT_ID + GOOGLE_CLIENT_SECRET (for OAuth login)
# - SESSION_SECRET (change from default!)
# - FRONTEND_URL

# Optional features:
# - Stripe keys (for payments)
# - Unosend keys (for emails)
# - AWS S3 keys (for file uploads/OG images)