-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy path.env.example
More file actions
105 lines (89 loc) · 2.91 KB
/
Copy path.env.example
File metadata and controls
105 lines (89 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
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
# docker-compose parameters
# docker compose project name
PROJECT_NAME=demo
# url of openimis, FQDN
DOMAIN=demo.openimis.org
# allowed host for CORS and CSFR, coma sepataed values
HOSTS=${DOMAIN}
CSRF_TRUSTED_ORIGINS=http://localhost
# Secret Key is used for generating JWT authentication tokens,
# Make sure to use a strong key
SECRET_KEY=
# http port for openimis
HTTP_PORT=80
# https port for openimis
HTTPS_PORT=443
# Uncomment the line below to intiate the database with the DEMO dataset, it will create an empty openIMIS database otherwise
#DEMO_DATASET=true
DB_PASSWORD=IMISuserP@s
DB_USER=IMISuser
DB_NAME=IMIS
# If MSSQL DB required DB_DEFAULT=postgresql and DB_PORT=5432, uncomment DB_DEFAULT=mssql, DB_PORT=1433 and ACCEPT_EULA (= y if you accept MS EULA)
# database parameters
DB_HOST=db
# Use PostgreSQL DB
DB_DEFAULT=postgresql
# PostgreSQL port
DB_PORT=5432
# Use MSSQL DB
#DB_DEFAULT=mssql
# MSSQL port
#DB_PORT=1433
#ACCEPT_EULA= <y if you accept MS EULA >
GATEWAY_PORT_S=443
# site root for backend
SITE_ROOT=api
# github branches to use
# Database, you can use develop branch too
DB_TAG=25.10
# BE assembly image tag
BE_TAG=25.10
#FE assembly, image tag
FE_TAG=25.10
#one-liner json config for the FE (to override the openimis.json from the FE assembly)
#OPENIMIS_FE_CONF_JSON=
#one-liner json config for the FE (to overright the openimis.json from the FE assembly)
#OPENIMIS_FE_CONF_JSON=
# django log level
DJANGO_LOG_LEVEL=WARNING
# django log handler (currently: degub-log (default), db-queries, console)
DJANGO_LOG_HANDLER=debug-log
# should the database be migrated at every container startup. Will be done anyway if $SITE_ROOT=api
DJANGO_MIGRATE=True
CSRF_TRUSTED_ORIGINS=http://localhost
# should define a strong key for JWT token key
SECRET_KEY=
# set your sentry DSN here
REACT_APP_SENTRY_DSN=""
######################
# Celery Configuration
######################
# Number of child processes for each Celery worker
CELERY_CONCURRENCY=4
# Number of maximum tasks per child before recycling the child
CELERY_MAX_TASK_PER_CHILD=50
######################
# Cache Configuration
######################
#
# Below are keys for configuring Caching in openIMIS
# openIMIS supports caching via Redis or Local cache or any cache backens supported by Django
#
# Uncomment the keys below to configure
## Cache Backend - specifies which cache backend to use
##
## local - django.core.cache.backends.locmem.LocMemCache
## redis - django.core.cache.backends.redis.RedisCache (default)
CACHE_BACKEND=django.core.cache.backends.redis.RedisCache
## Redis Password for the redis caching
REDIS_PASSWORD=redisUserPass123
## URL for the cache,
# For redis format must be redis://:${REDIS_PASSWORD}@redisaddr:redisport
CACHE_URL=redis://:${REDIS_PASSWORD}@redis:6379
## Cache Options
## See: https://
CACHE_OPTIONS={}
## Whether to cache objects by default
CACHE_OBJECT_DEFAULT=True
## The Time-To-Live for cached objects
CACHE_OBJECT_TTL=3600