-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
62 lines (53 loc) · 2.46 KB
/
Copy path.env.example
File metadata and controls
62 lines (53 loc) · 2.46 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
# =============================================================================
# 42 PROJECTS - ENVIRONMENT CONFIGURATION
# =============================================================================
# Copy this file to .env and uncomment the configuration you need
# For development: Uncomment the "DEVELOPMENT" sections
# For production: Uncomment the "PRODUCTION" sections
# =============================================================================
# -----------------------------------------------------------------------------
# Django Configuration
# -----------------------------------------------------------------------------
SECRET_KEY=f99a522c1ecb1996a2b6ac30a44423a3aa2bafece1dc3fab6bcb
# DEVELOPMENT
DEBUG=True
DJANGO_ENV=development
# PRODUCTION
# DEBUG=False
# DJANGO_ENV=production
# -----------------------------------------------------------------------------
# Database Configuration
# -----------------------------------------------------------------------------
DB_NAME=projects42_db
DB_USER=projects42_user
DB_PASSWORD=password
DB_HOST=db
DB_PORT=5432
# -----------------------------------------------------------------------------
# 42 API OAuth Credentials
# -----------------------------------------------------------------------------
# Get these from: https://profile.intra.42.fr/oauth/applications
API_42_UID=your_uid_here
API_42_SECRET=your_secret_here
# -----------------------------------------------------------------------------
# Application URLs
# -----------------------------------------------------------------------------
# IMPORTANT: Make sure your 42 OAuth application has the correct redirect URI:
# - Development: http://localhost/api/auth/callback/
# - Production: https://42projects.cc/api/auth/callback/
#
# NOTE: Don't add ports! Nginx runs on port 80 and handles all routing.
# DEVELOPMENT - Local development (nginx on port 80)
APP_DOMAIN=localhost,127.0.0.1
FRONTEND_URL=http://localhost
BACKEND_URL=http://localhost
# PRODUCTION - Deployed with domain and HTTPS
# APP_DOMAIN=42projects.cc,.42projects.cc,www.42projects.cc,nginx
# FRONTEND_URL=https://42projects.cc
# BACKEND_URL=https://42projects.cc
# -----------------------------------------------------------------------------
# Superuser Configuration (Optional - for automatic creation on first run)
# -----------------------------------------------------------------------------
DJANGO_SUPERUSER_USERNAME=admin
DJANGO_SUPERUSER_EMAIL=admin@42projects.local
DJANGO_SUPERUSER_PASSWORD=admin123