-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.prod.example
More file actions
30 lines (24 loc) · 924 Bytes
/
Copy path.env.prod.example
File metadata and controls
30 lines (24 loc) · 924 Bytes
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
# Production environment example
# Copy to .env.prod, fill in real values and keep secrets secure.
MIX_ENV=prod
PORT=4000
PHOENIX_HOST=0.0.0.0
PHX_HOST=safehemo.com
# Phoenix secret - generate a secure 64+ byte base64/hex string
SECRET_KEY_BASE=CHANGE_ME_SECRET_KEY_BASE
DATABASE_URL=postgresql://<user>:<password>@<host>:5432/<db>?ssl=true
# MQTT. Only need thecerts and keys in your ec2 instace if you are connecting directly to
# AWS IoT Core. If you are using a proxy or another MQTT broker,
# fill in the appropriate host, port, and credentials here.
MQTT_HOST=CHANGE_ME_IOT_CORE_MQTT_HOST
MQTT_PORT=8883
MQTT_USER=
MQTT_PASSWORD=
MQTT_USE_TLS=true
# Mailgun
MAILGUN_API_KEY=CHANGE_ME_MAILGUN_API_KEY
MAILGUN_DOMAIN=mg.safehemo.com
# IoT cert/key paths in the container
IOT_CERT_PATH=/app/certs/backend/certificate.pem.crt
IOT_KEY_PATH=/app/certs/backend/private.pem.key
IOT_ROOT_CA_PATH=/app/certs/root-ca.pem