forked from microrealestate/microrealestate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.env
91 lines (79 loc) · 4.21 KB
/
base.env
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
## Redis
REDIS_PORT=6379
REDIS_URL=redis://redis
REDIS_PASSWORD=change_this_password # Set a password in .env file
## Mongo
MONGO_PORT=27017
MONGO_URL=mongodb://mongo/demodb
## CIPHER to encrypt/decrypt third-party tokens (e.g. Mailgun API key, Blackblaze API key, etc.)
CIPHER_KEY=change_this_cipher_key # Generate a random key in .env file
CIPHER_IV_KEY=change_this_cipher_iv_key # Generate a random key in .env file
## General microservice configuration
NODE_ENV=production
LOGGER_LEVEL=debug
## gateway
GATEWAY_PORT=8080
GATEWAY_DEBUG_PORT=9225
GATEWAY_EXPOSE_FRONTENDS=true # The gateway proxies back-end services and optionally exposes the front-end applications
CORS_ENABLED=true # Enable CORS for the gateway but also for the front-end applications
DOMAIN_URL=http://localhost # The domain of the application to define CORS in the gateway and the refresh token cookie domain in the authenticator
# The url to access the gateway from the front-end applications
GATEWAY_URL=http://localhost:${GATEWAY_PORT}/api/v2
# The url to access the gateway from the inside of the docker network
DOCKER_GATEWAY_URL=http://host.docker.internal:${GATEWAY_PORT}/api/v2
## authenticator
AUTHENTICATOR_PORT=8000
AUTHENTICATOR_DEBUG_PORT=9226
# Secrets to sign/verify JWT tokens
AUTHENTICATOR_ACCESS_TOKEN_SECRET=change_this_access_token_secret # Generate a random key in .env file
AUTHENTICATOR_REFRESH_TOKEN_SECRET=change_this_refresh_token_secret # Generate a random key in .env file
AUTHENTICATOR_RESET_TOKEN_SECRET=change_this_reset_token_secret # Generate a random key in .env file
# The url to access the authenticator from the inside of the docker network
AUTHENTICATOR_URL=http://authenticator:${AUTHENTICATOR_PORT}
## pdfgenerator
PDFGENERATOR_PORT=8300
PDFGENERATOR_DEBUG_PORT=9227
# The url to access the pdfgenerator from the inside of the docker network
PDFGENERATOR_URL=http://pdfgenerator:${PDFGENERATOR_PORT}/pdfgenerator
## emailer
EMAILER_PORT=8400
EMAILER_DEBUG_PORT=9228
# General Mailgun configuration to send emails for forgot password, welcome, etc.
ALLOW_SENDING_EMAILS=true # Set to false to disable sending emails
MAILGUN_API_KEY=your_api_key # Get your API key from https://app.mailgun.com/app/account/security/api_keys
MAILGUN_DOMAIN=mg.example.com # Get your domain from https://app.mailgun.com/app/sending/domains
EMAIL_FROM="Example <[email protected]>" # The email address to send emails from
[email protected] # The email address to reply to
[email protected],[email protected] # The email address to send a copy of the email to
# The url to access the emailer from the inside of the docker network
EMAILER_URL=http://emailer:${EMAILER_PORT}/emailer
## api
API_PORT=8200
API_DEBUG_PORT=9229
DEMO_MODE=true # Set the application in demo mode to use the demo database and a demo user
RESTORE_DB=true # Set to true to restore the database from the ./backup directory at statup
# The url to access the api from the inside of the docker network
API_URL=http://api:${API_PORT}/api/v2
## resetservice
## /!\ To not add in production just for test purposes
RESETSERVICE_PORT=8900
RESETSERVICE_DEBUG_PORT=9230
# The url to access the resetservice from the inside of the docker network
RESETSERVICE_URL=http://resetservice:${RESETSERVICE_PORT}
## frontend
APP_NAME=MicroRealEstate # The name of the application displayed in the application header
SIGNUP=true # Enable/disable the signup feature
## landlord frontend
LANDLORD_FRONTEND_PORT=8180
LANDLORD_BASE_PATH=/landlord
# The url to access the landlord-frontend from the inside of the docker network
LANDLORD_FRONTEND_URL=http://landlord-frontend:${LANDLORD_FRONTEND_PORT}
# The url to access the landlord application from the browser
LANDLORD_APP_URL=${APP_URL}${LANDLORD_BASE_PATH}
## tenant frontend
TENANT_FRONTEND_PORT=8190
TENANT_BASE_PATH=/tenant
# The url to access the tenant-frontend from the inside of the docker network
TENANT_FRONTEND_URL=http://tenant-frontend:${TENANT_FRONTEND_PORT}
# The url to access the tenant application from the browser
TENANT_APP_URL=${APP_URL}${TENANT_BASE_PATH}