forked from AlienGen/timeoff-management-application
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.env.example
43 lines (36 loc) · 1.81 KB
/
.env.example
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
## TimeOff.Management Environment Configuration
### Application Settings
BRANDING_URL=http://localhost:3000 # URL where the application will be accessible
APP_PORT=3000 # Port to run the application on
HEADER_TITLE="TimeOff Management" # Application header title
# BRANDING_WEBSITE= # Optional: Your company's website URL
# CONTACT_EMAIL_ADDRESS= # Optional: Contact email address
### Database Configuration
## Option 1: External Database (recommended for production)
# DATABASE_URL=postgresql://user:pass@host:5432/dbname?sslmode=require
## Option 2: Local Database Container (recommended for development)
# Uncomment these and comment out DATABASE_URL to use local database container
DB_DATABASE=timeoff
DB_USER=timeoff
DB_PASSWORD=timeoff123
DB_HOST=postgres
# DB_PORT=5432 # Default: 5432 for PostgreSQL, 3306 for MySQL
# DB_DIALECT=postgres # Options: postgres, mysql
### SSL Configuration (for hosted databases)
USE_SSL=true # Set to true for hosted databases
DB_SSL_REQUIRE=true # Required for some hosted databases
DB_SSL_REJECT_UNAUTHORIZED=false # Set to true in production
### Security Settings
SESSION_SECRET=change_this_to_a_random_string
OPTION_ALLOW_NEW_REGISTRATIONS=true # Enable for initial setup, disable in production
# API_KEY= # Optional: Set for API access
### Email Configuration (optional)
SEND_EMAIL=false # Set to true to enable email notifications
# SMTP_HOST=smtp.example.com
# SMTP_PORT=587
# SMTP_AUTH_REQUIRED=true # Set to false if SMTP server doesn't require auth
# SMTP_AUTH_USER=
# SMTP_AUTH_PASS=
# SMTP_FROM=
# SMTP_REQUIRE_TLS=true
# CRYPTO_SECRET=ssssssuuuupppeeeerrrr-secccccrreeettttttt