-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.jinja
More file actions
60 lines (50 loc) · 2.04 KB
/
.env.jinja
File metadata and controls
60 lines (50 loc) · 2.04 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
# Environment control variables
# short name of the environment
ENVIRONMENT={{ environment }}
TIMEZONE={{ timezone }}
APP_HOST={{ domain }}
HTTP_PORT={{ http_port }}
HTTPS_PORT={{ https_port }}
# Basic authentication credentials for labs
AUTH_LABS_USERNAME=interface-engine
AUTH_LABS_PASSWORD={{ existing_secret('.env', 'AUTH_LABS_PASSWORD') or bcrypt(labs_password).replace('$', '$$') }}
DB_HOST={% if db_host_type == "container" %}db{% elif db_host_type == "same_server" %}host.docker.internal{% else %}{{ db_host }}{% endif %}
DB_PORT={% if db_host_type == "container" %}3306{% else %}{{ db_port }}{% endif %}
DB_USER={{ db_user }}
DB_PASSWORD="{{ db_password }}"
DB_NAME=admin
{% if db_host_type == "container" -%}
DB_ROOT_PASSWORD="{{ db_root_password }}"
{%- endif %}
DB_USE_TLS={{ db_use_tls | int }}
{% if use_custom_certs -%}
DB_CERTS=/certs/db-certs.crt
{%- else -%}
DB_CERTS=/etc/ssl/certs/ca-certificates.crt
{%- endif %}
SOURCE_SYSTEM_HOST=
SOURCE_SYSTEM_PORT=543
# Path inside the container where the clinical reports are volume mapped to
CLINICAL_REPORTS_PATH=/OpalDocuments/
{% if use_ofelia -%}
# Ofelia (cronjob scheduler) config variables
CRON_SMTP_HOST=
CRON_SMTP_PORT=
CRON_SMTP_USER=
CRON_SMTP_PASSWORD=
CRON_EMAIL_TO=
CRON_EMAIL_FROM="Server (env: ${ENVIRONMENT}) <support@opalmedapps.ca>"
CRON_EMAIL_ONLY_ON_ERROR=true
{%- endif %}
# Firebase specific
FIREBASE_PROJECT_NAME={{ firebase_project_name }}
FIREBASE_DATABASE_URL=https://${FIREBASE_PROJECT_NAME}.firebaseio.com
INSTITUTION_CODE={{ institution_code }}
# ----- Push Notification Configurations - FCM and APN ----
PUSH_NOTIFICATION_ANDROID_URL=https://fcm.googleapis.com/v1/projects/${FIREBASE_PROJECT_NAME}/messages:send
# App ID (from app/qplus) is used as the topic
APPLE_TOPIC={{ app_id }}
# compose configuration - files and project name:
COMPOSE_PATH_SEPARATOR=;
COMPOSE_FILE="compose.yaml{% if use_ofelia %};compose.ofelia.yaml{% endif %}{% if use_orms %};compose.orms.yaml{% endif %}{% if db_use_adminer %};compose.adminer.yaml{% endif %}"
# COMPOSE_PROJECT_NAME=opal_${ENVIRONMENT}