-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.dev.sample
More file actions
129 lines (106 loc) · 3.1 KB
/
.env.dev.sample
File metadata and controls
129 lines (106 loc) · 3.1 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
########################################
# Docker compose
########################################
#
#
# Dev Setup : base + expose MariaDB + volumes for HotReload
COMPOSE_FILE=docker-compose.yml:dev.yml:port.yml
#With external app
#COMPOSE_FILE=docker-compose.yml:prod.yml:traefik.yml:external-app.yml
# Docker container
RESTART=no
# 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 and host
########################################
HTTP_PROTOCOL=http
# Each container exposed has a name and a host variable
NAME= # NOT USED in dev
HOST=localhost:4000
BACKEND_NAME= # NOT USED in dev
BACKEND_HOST=localhost:3000
CADDY_NAME= # NOT USED in dev
CADDY_HOST=localhost:9000
########################################
# 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=2
# MAX_API_PAYLOAD_SIZE must be set in mb
MAX_API_PAYLOAD_SIZE=50
# Auth and security stuff
JWT_SECRET=changeMe
JWT_EMAIL_VERIFICATION_TOKEN_SECRET=changeMeAlso
SALT=10
# SMTP and mail setup ATTENTION this variables should be empty in dev mode or the mailer service will send mail unless you want it.
SMTP_DOMAIN=
SMTP_PASSWORD=
SMTP_USER=
SMTP_PORT=
SMTP_IGNORE_TLS=
SMTP_SSL=
ADMIN_MAIL=
FROM_MAIL=
NAME_MAIL=
# Swagger API Documentation
SWAGGER_RELATIVE_PATH=api
SWAGGER_TITLE=Mirador MultiUsers API
SWAGGER_DESCRIPTION=API Documentation for Mirador MultiUsers (MMU)
SWAGGER_VERSION=0.1
# Youtube API key, needed if you want to use youtube video
YOUTUBE_API_KEY=
# Admin settings
ALLOW_CREATE_USER=true
ALLOW_YOUTUBE_MEDIA=true
ALLOW_PEERTUBE_MEDIA=true
MAX_UPLOAD_SIZE=5 #should be set in MB
OPENID_CONNECTION=false
CLASSIC_AUTHENTICATION=true
# Open ID connect settings
OIDC_ISSUER=https://keycloak.xema.tetras-libre.fr/realms/MMU-test
OIDC_CLIENT_ID=mmu-test-client
OIDC_CLIENT_SECRET=
OIDC_REDIRECT_URI=http://localhost:3000/auth/oidc/callback
SESSION_SECRET=
#External Dashboard
EXTERNAL_DASHBOARD_URL=
ACCOUNT_MANAGEMENT_URL=
########################################
# Database Env
########################################
DB_PASS=changeMe
DB_DATABASE=multiUsers
DB_USER=mirador
DB_EXPOSE_PORT=3306
DB_HOST=db
########################################
# Caddy Env
########################################
# HTTP folder, will be served at http://localhost:$PORT/data
# use absolute path or relative path starting with ./
HTTP_FOLDER=./backend/upload
LOG_FOLDER=./logs
# 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=http
########################################
# Custom Assets
########################################
# You can find custom assets in the folder custom_assets
# - landing background image
# - favicon.svg
# - CustomTerms.tsx
# - Consent.tsx