-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.production
More file actions
95 lines (77 loc) · 3.06 KB
/
Copy path.env.production
File metadata and controls
95 lines (77 loc) · 3.06 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
85
86
87
88
89
90
91
92
93
94
# TPEN Services - Production Environment Template
# DO NOT commit actual production secrets to this file
# This file extends config.env with production-specific overrides
# In production, set these via GitHub Secrets, environment variables, or secret management
# ============================================================================
# ENVIRONMENT-SPECIFIC SETTINGS
# ALL of these MUST be set for production deployments
# ============================================================================
# Server Configuration
SERVERURL=https://api.t-pen.org
PORT=3011
DOWN=false
# ============================================================================
# DATABASE CONFIGURATION (REQUIRED)
# ============================================================================
# Production MongoDB
MONGODB=mongodb://prod-mongo-host:27017/
MONGODBNAME=tpen
# Production MariaDB
MARIADB=prod-maria-host
MARIADBNAME=tpen
MARIADBUSER=tpen_prod_user
MARIADBPASSWORD=REPLACE_WITH_SECRET
# ============================================================================
# EXTERNAL SERVICES
# ============================================================================
# Production RERUM Store
RERUMIDPREFIX=https://store.rerum.io/v1/id/
# Production TinyPEN
TINYPEN=https://tiny.t-pen.org/
# TPEN Interfaces URL
TPENINTERFACES=https://app.t-pen.org/
TPENINTERFACESNAMESPACE=https://app.t-pen.org/
# ============================================================================
# STATIC STORAGE (GitHub) (REQUIRED)
# ============================================================================
REPO_NAME=TPEN-static
TPENSTATIC=https://{organization}.github.io/static/
# CRITICAL: Use GitHub Secrets for this token in production
# Needs: repo scope
GITHUB_TOKEN=REPLACE_WITH_SECRET
# ============================================================================
# AUTHENTICATION (Auth0) (REQUIRED)
# ============================================================================
# Production Auth0 configuration
AUDIENCE=https://api.t-pen.org
DOMAIN=REPLACE_WITH_PROD_TENANT.auth0.com
# ============================================================================
# EMAIL CONFIGURATION (REQUIRED)
# ============================================================================
SMTP_HOST=smtp.production.com
SMTP_PORT=587
TPEN_SUPPORT_EMAIL=support@t-pen.org
TPEN_EMAIL_CC=admin@t-pen.org
# ============================================================================
# PRODUCTION NOTES
# ============================================================================
#
# CORS Policy:
# - API is open to all origins by default
# - No origin restrictions for public API access
#
# Secret Management:
# - Use GitHub Secrets for CI/CD deployments
# - Use environment variables in container/VM deployments
# - Never commit actual secrets to this file
# - Rotate secrets regularly
#
# Monitoring:
# - Enable logging and monitoring in production
# - Set up alerts for DOWN=true
# - Monitor database connections
#
# Security:
# - Use HTTPS for all endpoints
# - Regularly update dependencies
# - Consider rate limiting for production if needed