-
Notifications
You must be signed in to change notification settings - Fork 3
/
env.sh
54 lines (38 loc) · 1.49 KB
/
env.sh
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
#!/usr/bin/env bash
if [ ! -f .env ]; then
echo "Generating .env file.."
touch .env
{
echo "PORT=4001"
echo "PROJECT=OTH"
echo "MODULE=AuthServer"
echo "ENVIRONMENT=Local"
echo "CLIENT_URL=http://localhost:4200"
echo "ADMIN_CLIENT_URLS=http://localhost:4202"
echo "DATABASE_URL={Database Connection Url}"
echo "POSTGRESQL_CONNECTION_LIMIT={Postgresql Connection Limit}"
echo "CLOUDAMQP_APIKEY={MQ Api Key}"
echo "CLOUDAMQP_URL={MQ Connection Url}"
echo "AUTH_SERVER_QUEUE_CHANNEL=oth_auth_queue"
echo "ORCHESTRATION_SERVER_QUEUE_CHANNEL=oth_orchestration_queue"
echo "REDISCLOUD_URL={Redis Connection Url}"
echo "REDIS_CONNECTION_LIMIT={Redis Connection Limit}"
echo "AUTO_VERIFY=false"
echo "ACCESS_TOKEN_EXPIRE=1hour"
echo "ACCESS_TOKEN_SECRET={Access Token Secret}"
echo "REFRESH_TOKEN_EXPIRE=30days"
echo "REFRESH_TOKEN_SECRET={Refresh Token Secret}"
echo "JOIN_TEAM_TOKEN_EXPIRE=10days"
echo "JOIN_TEAM_TOKEN_SECRET={Join Team Token Secret}"
echo "RESET_PASSWORD_TOKEN_EXPIRE=1day"
echo "RESET_PASSWORD_TOKEN_SECRET={Reset Token Secret}"
echo "VERIFICATION_TOKEN_SECRET={Verification Token Secret"
echo "RESPONSE_ENCRYPTION_SECRET={Response Encryption Secret}"
echo "PREAUTH_TOKEN_SECRET={Pre Auth Token Secret}"
echo "TWO_FACTOR_EXPIRE=90"
echo "TWO_FACTOR_CODE_LENGTH=5"
echo "TWO_FACTOR_CODE_TYPE=numeric"
} >>.env
else
echo ".env file already exists. Nothing to do..."
fi