-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.local.example
More file actions
77 lines (60 loc) · 2.91 KB
/
Copy path.env.local.example
File metadata and controls
77 lines (60 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
73
74
75
76
77
# Environment Variables for LOCAL TESTING
# Copy this file to .env.local for local Docker testing
# Command: cp .env.local.example .env.local
# IMPORTANT: This is for LOCAL TESTING ONLY
# For production deployment, use .env.example instead
# ============================================================================
# Docker Compose Configuration
# ============================================================================
# Project name - use different name to avoid conflicts with production
COMPOSE_PROJECT_NAME=survey-dashboard-local
# ============================================================================
# Application Configuration
# ============================================================================
# Port the Panel application runs on inside the container
APP_PORT=5006
# ============================================================================
# Nginx Configuration
# ============================================================================
# Port nginx exposes on the host machine
# Default: 80 for HTTP
# If port 80 is in use, change to 8080 or another available port
NGINX_PORT=80
# Domain name - use localhost for local testing
# IMPORTANT: HTTPS will NOT work with localhost (Let's Encrypt requires real domains)
# You can only test HTTP locally
HOST=localhost
# ============================================================================
# SSL/HTTPS Configuration (Let's Encrypt)
# ============================================================================
# Dummy email for local testing
# This is not used when HOST=localhost (Let's Encrypt won't run)
# In production, use a real email address
LETSENCRYPT_EMAIL=test@localhost
# ============================================================================
# Python Configuration
# ============================================================================
# Keep Python output unbuffered for better logging
PYTHONUNBUFFERED=1
# ============================================================================
# LOCAL TESTING NOTES
# ============================================================================
# What works locally:
# ✅ Docker build and container startup
# ✅ HTTP access at http://localhost/2021community
# ✅ Path routing and restrictions
# ✅ WebSocket connections
# ✅ Dashboard interactivity
# ✅ Container restarts and rebuilds
# What does NOT work locally:
# ❌ HTTPS/SSL certificates (requires real domain)
# ❌ Let's Encrypt certificate acquisition (localhost is not valid)
# ❌ External access from internet (only local machine)
# How to test:
# 1. Copy this file: cp .env.local.example .env.local
# 2. Start containers: docker-compose --env-file .env.local up -d --build
# 3. Test in browser: http://localhost/2021community
# 4. Follow LOCAL_TESTING.md for detailed testing scenarios
# Cleanup after testing:
# docker-compose --env-file .env.local down
# docker-compose --env-file .env.local down -v # Remove volumes too