add DB_CONNECTION env variable
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
3e4faf4120
commit
e4bb7f6208
5
Makefile
5
Makefile
|
@ -80,10 +80,11 @@ secrets:
|
|||
aws_access_key = \"$(shell pass cloud/AWS/access-key)\"\n\
|
||||
aws_secret_key = \"$(shell pass cloud/AWS/secret-key)\"\n\
|
||||
gandi_api_token = \"$(shell pass cloud/Gandi/api-token)\"\n\
|
||||
dap_ps_admin_user = \"$(shell pass service/app/admin-user)\"\n\
|
||||
dap_ps_admin_pass = \"$(shell pass service/app/admin-pass)\"\n\
|
||||
dap_ps_smtp_user = \"$(shell pass cloud/AWS/ses/smtp-user)\"\n\
|
||||
dap_ps_smtp_pass = \"$(shell pass cloud/AWS/ses/smtp-secret-key)\"\n\
|
||||
dap_ps_admin_user = \"$(shell pass service/dev/app/admin-user)\"\n\
|
||||
dap_ps_admin_pass = \"$(shell pass service/dev/app/admin-pass)\"\n\
|
||||
dap_ps_db_uri = \"$(shell pass service/dev/mongodb/uri)\"\n\
|
||||
" > terraform.tfvars
|
||||
|
||||
cleanup:
|
||||
|
|
3
main.tf
3
main.tf
|
@ -74,6 +74,9 @@ locals {
|
|||
ADMIN_USER = "${var.dap_ps_admin_user}"
|
||||
ADMIN_PASSWORD = "${var.dap_ps_admin_pass}"
|
||||
|
||||
/* Database */
|
||||
DB_CONNECTION = "${var.dap_ps_db_uri}"
|
||||
|
||||
/* BlockChain */
|
||||
BLOCKCHAIN_CONNECTION_POINT = "wss://ropsten.infura.io/ws/v3/8675214b97b44e96b70d05326c61fd6a"
|
||||
DISCOVER_CONTRACT = "0x17e7a7330d23fc6a2ab8578a627408f815396662"
|
||||
|
|
|
@ -86,6 +86,11 @@ variable dap_ps_smtp_pass {
|
|||
description = "Password for accessing AWS SES SMTP endpoint."
|
||||
}
|
||||
|
||||
variable dap_ps_db_uri {
|
||||
description = "An URI for MongoDB database including auth information."
|
||||
/* https://docs.mongodb.com/manual/reference/connection-string/ */
|
||||
}
|
||||
|
||||
/* SES FORWARDER --------------------------------*/
|
||||
|
||||
variable ses_forwarder_bucket_name {
|
||||
|
|
Loading…
Reference in New Issue