-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
84 lines (67 loc) · 2.9 KB
/
Copy path.env.example
File metadata and controls
84 lines (67 loc) · 2.9 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
# Archive Film Club - Database Configuration
# Copy this file to .env and update with your database credentials
# ==============================================
# DATABASE CONFIGURATION
# ==============================================
# For cPanel users: Find these in cPanel > MySQL Databases
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=your_database_name
DB_USERNAME=your_database_username
DB_PASSWORD=your_database_password
# ==============================================
# CACHE SETTINGS (optional - defaults shown)
# ==============================================
# Cache durations in seconds
CACHE_SEARCH_TTL=1800
CACHE_METADATA_TTL=86400
CACHE_THUMBNAIL_TTL=604800
CACHE_SETTINGS_TTL=3600
# ==============================================
# ADMIN CONFIGURATION
# ==============================================
# Break-glass admin password (used only when the database is unreachable
# or no admin user exists yet). MUST be a password_hash() value, NOT
# plaintext -- if you store plaintext the login screen will refuse it.
# Generate one with:
# php -r "echo password_hash('your-strong-password', PASSWORD_DEFAULT);"
# Leave empty to disable fallback auth entirely.
ADMIN_PASSWORD=
# ==============================================
# DEBUG (optional)
# ==============================================
# When true, PHP error messages are shown in the browser. Useful during
# install troubleshooting; MUST be left false (or unset) in production.
APP_DEBUG=false
# ==============================================
# FEATURE FLAGS (optional - defaults shown)
# ==============================================
# Set to false to disable features
ENABLE_THUMBNAIL_CACHING=true
ENABLE_SEARCH_CACHING=true
ENABLE_USER_SESSIONS=true
ENABLE_API_LOGGING=true
# ==============================================
# APP URL (used in emails, e.g. password reset links)
# ==============================================
# If unset, the app infers the URL from the current request.
# Set this on production to guarantee correct links in emails.
# APP_URL=https://yourdomain.com
# ==============================================
# SMTP / EMAIL (used for password reset + verification)
# ==============================================
# If SMTP_HOST is unset, the app falls back to PHP's built-in mail()
# function, which works on most shared hosts but is less reliable.
# MAIL_FROM=noreply@yourdomain.com
# MAIL_FROM_NAME=Archive Film Club
# SMTP_HOST=smtp.example.com
# SMTP_PORT=587
# SMTP_USERNAME=your_smtp_user
# SMTP_PASSWORD=your_smtp_password
# SMTP_ENCRYPTION=tls
# ==============================================
# PATHS (optional - defaults to relative paths)
# ==============================================
# Uncomment and set if you need custom paths
# THUMBNAIL_CACHE_PATH=/home/yourusername/public_html/videos/thumbnails
# LOG_PATH=/home/yourusername/public_html/videos/logs