-
Notifications
You must be signed in to change notification settings - Fork 114
Expand file tree
/
Copy path.env.example
More file actions
66 lines (51 loc) · 4.56 KB
/
.env.example
File metadata and controls
66 lines (51 loc) · 4.56 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
DISABLE_LOGGING=false
DISABLE_RATE_LIMIT=true
DEFAULT_LOCALE=en
FILE_FIELD_ADAPTER=local
HELP_REQUISITES='{ "support_email": "help@example.com", "support_email_mobile": "helpmobile@example.com", "bot_email": "service@example.com", "support_phone": "+1 301 000-00-00" }'
# Cache settings
ADAPTER_CACHE_CONFIG='{ "enabled": true, "excludedLists":[], "logging":0, "maxCacheSize":1000, "logStatsEachSecs": 60 }'
REQUEST_CACHE_CONFIG='{ "enabled": true, "logging":0, "logStatsEachSecs": 60 }'
#OIDC_CONDO_CLIENT_CONFIG='{"serverUrl":"http://localhost:3000", "clientId":"<client id>", "clientSecret":"<client secret>"}'
# Feature flags configuration!
# NOTE: you and use "url"+"apiKey" keys for remote api features or "static" key for const defined features
# FEATURE_TOGGLE_CONFIG='{"url": "http://localhost:3100/api/features", "apiKey": "key"}'
# FEATURE_TOGGLE_CONFIG='{"url":null,"apiKey":null,"static":{}}'
BANK_ACCOUNT_REQUEST_EMAIL_TARGET=help@doma.ai
# FIREBASE_CONFIG_JSON contents can be retrieved from https://console.firebase.google.com/project/<PROJECT_ID>/settings/serviceaccounts/adminsdk
# nosemgrep: generic.secrets.security.detected-google-gcm-service-account.detected-google-gcm-service-account
# FIREBASE_CONFIG_JSON='{"appId": {"type": "service_account", "project_id": "<PROJECT_ID>", "private_key_id": "<PRIVATE_KEY_ID", "private_key": "<PRIVATE_KEY>", "client_email": "<FIREBASE_ADMIN_SDK_EMAIL> at .gserviceaccount.com", "client_id": "<CLIENT_ID>", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "https://oauth2.googleapis.com/token", "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/<CLIENT_EMAIL_VALUE>"} }'
# real Firebase push token for testing real push notification delivery to device, would be used only if provided
# FIREBASE_PUSH_TOKEN_TEST=<TOKEN>
# HMS - Huawei Messaging System
# HMS_CONFIG_JSON contents can be retrieved from ..., there should be separate section for each app receiving push notifications via HMS
# HMS_CONFIG_JSON='{"resident": {"clientId": "<RESIDENT_CLIENT_ID", "secret": "<RESIDENT_CLIENT_SECRET>"}, "master": {"clientId": "<MASTER_CLIENT_ID>", "secret": "<MASTER_CLIENT_SECRET>"}}'
# real HMS push tokens for testing real push notification delivery to device, would be used only if provided
# HCM_PUSH_TOKEN_TEST_RESIDENT=<TOKEN>
# HCM_PUSH_TOKEN_TEST_MASTER=<TOKEN>
#
# APPLE_CONFIG_JSON='{"kid": <KEY_ID>, "iss": <ISSUER_ID>, "privateKey": "<PRIVATE_KEY>" }'
# real Apple push tokens for testing real push notification delivery to device, would be used only if provided
# APPLE_PUSH_TOKEN_TEST=<TOKEN>
# APPLE_VOIP_PUSH_TOKEN_TEST=<TOKEN>
MOBILE_APP_IDS='{ "resident": { "ios": "ai.doma.clients", "android": "ai.doma.client" }, "master": { "ios": "ai.doma.master", "android": "ai.doma.master" }}'
TELEGRAM_EMPLOYEE_BOT_TOKEN=telegram-token
# reCaptcha setup
# HCAPTCHA_CONFIG='{"API_KEY":"<API_KEY>", "SITE_KEY":"<SITE_KEY>", "ANDROID_KEY":"<ANDROID_KEY>", "IOS_KEY":"<IOS_KEY>"}'
# SETS_OF_SPECIFIC_REQUEST_HEADERS='{"SITE":[{ "<specific-header>":"some-value" }], "ANDROID_APP":[], "IOS_APP":[], }'
DISABLE_CAPTCHA=true
USE_LOCAL_FEATURE_FLAGS=true
NOTIFICATION__SEND_ALL_MESSAGES_TO_CONSOLE=true
NOTIFICATION__DISABLE_LOGGING=false
TESTS_LOG_REQUEST_RESPONSE=true
WORKER_CONCURRENCY=50
# AI setup
# To run tests locally, you need the AI_FLOWS_CONFIG and AI_ADAPTERS_CONFIG variables with the listed values
AI_ENABLED=true
AI_FLOWS_CONFIG='{"custom":{"success_flow":{"adapter":"flowise","predictionUrl":"http://localhost:57657/test/flowise/api/v1/prediction/success"}, "failed_flow":{"adapter":"flowise","predictionUrl":"http://localhost:57657/test/flowise/api/v1/prediction/fail/500"}, "success_n8n_flow":{"adapter":"n8n","predictionUrl":"http://localhost:57657/test/n8n/webhook/success"}, "failed_n8n_flow":{"adapter":"n8n","predictionUrl":"http://localhost:57657/test/n8n/webhook/fail/500"}}}'
AI_ADAPTERS_CONFIG='{"flowise":{"secret":"test-no-real-secret"}, "n8n":{"apiKey":"test-n8n-api-key"}}'
# Subscriptions
ENABLE_SUBSCRIPTIONS=true
# Messaging Configuration (single JSON)
# nosemgrep: generic.secrets.gitleaks.generic-api-key.generic-api-key
MESSAGING_CONFIG='{"enabled":true,"brokerUrl":"nats://127.0.0.1:4222","wsUrl":"ws://localhost:8080","tokenSecret":"your-secret-key-change-in-production","authAccountSeed":"SAANTIIQ5AKD632Z3O7MNITGRJ22L6TFEKYIXSD2SFLVJFKCSF25JR2SJY","authIssuer":"AD5OKYBBXKWGDF4MWC7WFPAU32PGJIRJSY2OW4XQTMU3KRBAWCOPZFHE","authUser":"auth-service","authPassword":"auth-secret","serverUser":"condo-server","serverPassword":"server-secret"}'