-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
68 lines (53 loc) · 2.67 KB
/
.env.example
File metadata and controls
68 lines (53 loc) · 2.67 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
# Application Configuration
APP_ENV=dev # App environment: dev, production, testing
APP_URL=http://localhost # Base URL of the application
# Application Settings
APP_HOME=home # Default controller to load when none is specified
APP_ERROR=not_found # Default controller for when no route is found
DOMAIN=localhost
# Performance Configuration
COMPRESSION=0 # Gzip compression level (0-9, 0 = off)
# Localization
DEFAULT_LANGUAGE=en-gb # Default language for the application
TIMEZONE=UTC # Application timezone
# Database Configuration
DB_DRIVER=mysql # Database driver (mysql, pgsql, sqlite, sqlsrv)
DB_HOSTNAME=localhost # Database hostname or IP address
DB_DATABASE=your_database_name # Database name
DB_USERNAME=your_database_user # Database username
DB_PASSWORD=your_database_password # Database password
DB_PORT=3306 # Database port
DB_ENCODING=utf8mb4 # Database encoding
DB_PREFIX= # Database table prefix
# Cache Configuration
CACHE_ENABLED=false # cache enabled (true/false)
CACHE_DRIVER=file # cache driver (file, redis, memcached)
CACHE_TTL=3600 # cache time-to-live in seconds
# Session Configuration
SESSION_TIME=31556926 # session time in seconds (default: 1 year)
SESSION_DRIVER=file # session driver (file, database, redis, etc.)
SESSION_LIFETIME=7200 # session lifetime in seconds
SESSION_SECURE=false # secure cookies (true/false)
SESSION_HTTPONLY=true # HTTP only cookies (true/false)
SESSION_NAME=easyapp_session # session cookie name
# Security Configuration
CSRF_PROTECTION=true # CSRF protection enabled (true/false)
INPUT_SANITIZATION=true # Input sanitization enabled (true/false)
# Logging Configuration
LOG_LEVEL=error # log level (debug, info, warning, error)
LOG_FILE=storage/logs/error.log # log file path
# Development Configuration
DEBUG=true # Debug mode (true/false)
DEV_DB_SCHEMA=false # Auto-create database schema in development (true/false)
# Array Support Examples
# Comma-separated arrays
ALLOWED_HOSTS=localhost,127.0.0.1,::1 # this will be available as CONFIG_ALLOWED_HOSTS array
EMAIL_RECIPIENTS=admin@example.com,user@example.com # this will be available as CONFIG_EMAIL_RECIPIENTS array
# JSON arrays
SOCIAL_LINKS=["https://github.com","https://twitter.com","https://linkedin.com"] # this will be available as CONFIG_SOCIAL_LINKS array
CONFIG_OPTIONS={"timeout":30,"retries":3,"ssl_verify":true} # this will be available as CONFIG_CONFIG_OPTIONS array
# Boolean and numeric values
FEATURE_ENABLED=true # this will be available as boolean CONFIG_FEATURE_ENABLED
MAX_CONNECTIONS=100 # this will be available as integer CONFIG_MAX_CONNECTIONS
API_TIMEOUT=5.5 # this will be available as float CONFIG_API_TIMEOUT
RETRY_DELAY=1.5 # this will be available as float CONFIG_RETRY_DELAY