forked from Samagra-Development/user-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.sample
38 lines (31 loc) · 1.45 KB
/
.env.sample
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
DATABASE_URL="postgresql://user:dbpassword@homeserver:15434/dbname?schema=public"
# Gupshup
GUPSHUP_BASEURL="http://enterprise.smsgupshup.com/GatewayAPI/rest"
OTP_EXPIRY=30
GUPSHUP_USERNAME="2000xxxxxxx"
GUPSHUP_PASSWORD="password"
GUPSHUP_OTP_TEMPLATE="Hi User! The OTP to reset password for Samagra Shiksha App is %code%."
# CDAC
CDAC_SERVICE_URL=
CDAC_OTP_TEMPLATE_ID="123456"
CDAC_OTP_TEMPLATE="Respected User, The OTP to reset password for %phone% is %code%."
# SMS Adapter
SMS_ADAPTER_TYPE= # CDAC or GUPSHUP
SMS_TOTP_SECRET= # any random string, needed for CDAC
SMS_TOTP_EXPIRY=600 # in seconds, needed for CDAC
# Fusionauth
FUSIONAUTH_APPLICATION_ID="f0ddb3f6-091b-45e4-8c0f-889f89d4f5da"
FUSIONAUTH_SAMARTH_HP_APPLICATION_ID=f18c3f6f-45b8-4928-b978-a9906fd03f22
FUSIONAUTH_HP_ADMIN_CONSOLE_APPLICATION_ID=
FUSIONAUTH_BASE_URL="https://auth.samarth.samagra.io"
FUSIONAUTH_API_KEY="bla"
ENCRYPTION_KEY="bla"
FUSIONAUTH_ADMIN_SEARCH_APPLICATION_IDS=["1","2"] # JSON array of application IDs
# APP_abcd3f6f_45b8_4928_b978_a9906fd03f22={"host": "dummy.com", "encryption": {"enabled": true, "key": "veryhardkey"}, "salt": "sampl-salt-for-otp-encrypption"} # the key "application_id" must be underscore(_) separated instead of hyphen(-). Also it must be prefixed with <APP_>
#Flagsmith
USE_FLAGSMITH="true" #true or false
FLAGSMITH_ENVIRONMENT_KEY=
#Testing
ALLOW_DEFAULT_OTP="false"
DEFAULT_OTP="1234"
DEFAULT_OTP_USERS=["9999999999"] # JSON array of mobile numbers