-
Notifications
You must be signed in to change notification settings - Fork 22
/
.env.sample
51 lines (41 loc) · 1.71 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
39
40
41
42
43
44
45
46
47
48
49
50
51
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 or RAJAI
SMS_TOTP_SECRET= # any random string, needed for CDAC
SMS_TOTP_EXPIRY=600 # in seconds, needed for CDAC
#RAJAI OTP Service
RAJAI_USERNAME=
RAJAI_PASSWORD=
RAJAI_BASEURL=
# 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
# Sentry
SENTRY_DSN=
# CORS
CORS_ALLOWED_ORIGINS=https://example.com
CORS_ALLOWED_HEADERS=Content-Type,Authorization,x-application-id
CORS_ALLOWED_METHODS=GET,PUT,POST,DELETE,PATCH,OPTIONS