-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.env.prod.sample
110 lines (86 loc) · 2.7 KB
/
.env.prod.sample
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
########################################
# Docker compose
########################################
# On non aquila (Traefik) environment
#COMPOSE_FILE=docker-compose.yml:prod.yml:port.yml
# On aquila (Traefik) environment
COMPOSE_FILE=docker-compose.yml:prod.yml:traefik.yml
# Global restart policy
RESTART=always
# Ports (Not used in production with traefik)
# Front end port
PORT=4000
# Backend end port
BACKEND_PORT=3000
# Caddy Port
CADDY_PORT=9000
########################################
# Aquila environment
########################################
HTTP_PROTOCOL=https
# Each container exposed has a name and a host variable
NAME=mmu
HOST=mmu.your-domain.com
BACKEND_NAME=mmu-backend
BACKEND_HOST=mmu-backend.your-domain.com
CADDY_NAME=mmu-caddy
CADDY_HOST=mmu-caddy.your-domain.com
########################################
# Shared Env (Front and backend)
########################################
# Platform information
INSTANCE_SHORT_NAME=MMU
INSTANCE_NAME=Mirador Multi User
########################################
# Backend Env
########################################
# 0 = ERROR, 1 = WARN, 2 = DEBUG, 3 = LOG, 4 = VERBOSE
LOG_LEVEL=0
MAX_UPLOAD_SIZE=5 #should be set in MB
# Auth and security stuff
JWT_SECRET= # YOU NEED TO CHANGE THIS
JWT_EMAIL_VERIFICATION_TOKEN_SECRET= # YOU NEED TO CHANGE THIS
SALT=10
# SMTP and mail setup
SMTP_DOMAIN= # YOU NEED TO CHANGE THIS
SMTP_PASSWORD= # YOU NEED TO CHANGE THIS
SMTP_USER= # YOU NEED TO CHANGE THIS
SMTP_PORT= # YOU NEED TO CHANGE THIS
SMTP_IGNORE_TLS= # YOU NEED TO CHANGE THIS
SMTP_SSL= # YOU NEED TO CHANGE THIS
NAME_MAIL=Mirador Multi User
# Swagger API Documentation
SWAGGER_RELATIVE_PATH=api
SWAGGER_TITLE=Mirador MultiUsers API
SWAGGER_DESCRIPTION=API Documentation for Mirador MultiUsers (MMU)
SWAGGER_VERSION=0.1
########################################
# Database Env
########################################
DB_PASS= # YOU NEED TO CHANGE THIS
DB_DATABASE=multiUsers
DB_USER=mirador
DB_EXPOSE_PORT=3306
DB_HOST=db
########################################
# Caddy Env
########################################
# prod container restart policy
CADDY_RESTART=unless-stopped
# HTTP folder, will be served at http://localhost:$PORT/data
# use absolute path or relative path starting with ./
HTTP_FOLDER=./upload
# hosts allowed to access ressources from $HTTP_FOLDER
# * to allow all, http://localhost:$DEV_PORT to allow only devserver
CORS_ALLOWED_HOSTS=*
CADDY_HTTP_PROTOCOL=https
########################################
# Custom Assets
########################################
# You can find custom assets in the folder custom_assets
# - landing background image
# - favicon.svg
# - CustomTerms.tsx
# - Consent.tsx