-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.envrc.example
More file actions
35 lines (29 loc) · 857 Bytes
/
.envrc.example
File metadata and controls
35 lines (29 loc) · 857 Bytes
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
# Copy to .envrc and set values for your local environment.
# Example:
# cp .envrc.example .envrc
# direnv allow
# Server
export SERVER_PORT=8081
# MySQL
export DB_URL="jdbc:mysql://localhost:3306/synchtask"
export DB_USERNAME="root"
export DB_PASSWORD="change_me"
# Redis
export REDIS_HOST="localhost"
export REDIS_PORT=6379
export REDIS_PASSWORD=""
export REDIS_DATABASE=0
export REDIS_TIMEOUT=5000
# OAuth2 (Google)
export GOOGLE_CLIENT_ID=""
export GOOGLE_CLIENT_SECRET=""
export GOOGLE_REDIRECT_URI="http://localhost:8081/login/oauth2/code/google"
# JWT
export JWT_EXPIRATION=3600000
export JWT_REFRESH_EXPIRATION=1209600000
export JWT_ISSUER="synchtask-backend"
export JWT_JWK_SET_URI="http://localhost:8081/jwks"
export JWT_AUDIENCE="synchtask-client"
export JWT_ALGORITHM="RS256"
# CORS
export CORS_ALLOWED_ORIGINS="http://localhost:3000"