-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.env.example
More file actions
72 lines (57 loc) · 2.91 KB
/
Copy path.env.example
File metadata and controls
72 lines (57 loc) · 2.91 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
# ToCry Environment Variables
# Copy this file to .env and uncomment/customize the values you need
# Only uncomment the variables you want to override - all are optional
# =============================================================================
# Authentication Configuration
# =============================================================================
# Google OAuth Authentication (Optional)
# If both are set, Google OAuth will be enabled
#GOOGLE_CLIENT_ID=your_google_client_id_here
#GOOGLE_CLIENT_SECRET=your_google_client_secret_here
# Basic Authentication (Optional)
# If both are set, Basic Auth will be enabled
# Note: Google OAuth takes precedence over Basic Auth
#TOCRY_AUTH_USER=your_username
#TOCRY_AUTH_PASS=your_secure_password
# Fake Authentication for Testing (Optional)
# Sets a fake user for development/testing
#TOCRY_FAKE_AUTH_USER=test_user
# =============================================================================
# Security Configuration
# =============================================================================
# Session Secret (Optional)
# Secret key for session encryption
# If not set, a default key will be used (not recommended for production)
#SESSION_SECRET=a_very_long_and_secure_secret_key_change_this_in_production
# =============================================================================
# AI Configuration
# =============================================================================
# Z.AI API Key (Optional)
# Required for AI assistant functionality
# Get your API key from https://z.ai
#Z_AI_API_KEY=your_z_ai_api_key_here
# =============================================================================
# Rate Limiting Configuration
# =============================================================================
# Enable or disable rate limiting entirely
#TOCRY_RATE_LIMITING_ENABLED=true
# Rate limits in format "requests/seconds" (e.g., "500/3600" = 500 requests per hour)
# If not set, defaults from config/rate_limits.yml will be used
#TOCRY_RATE_LIMIT_USER=500/3600 # General API requests per user
#TOCRY_RATE_LIMIT_AI=50/3600 # AI completion requests per user
#TOCRY_RATE_LIMIT_UPLOAD=50/3600 # File uploads per user
#TOCRY_RATE_LIMIT_AUTH=20/900 # Authentication attempts per user (15 minutes)
# =============================================================================
# System Configuration (Usually Auto-detected)
# =============================================================================
# User and Home Directory (Usually auto-detected, override if needed)
#USER=your_username
#HOME=/path/to/your/home/directory
# =============================================================================
# Server Configuration (Can be set via CLI args instead)
# =============================================================================
# These can also be set via command line arguments:
# --data-path /path/to/data
# --port 3000
# --bind 127.0.0.1
# --safe-mode