-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
46 lines (38 loc) · 1.17 KB
/
.env.example
File metadata and controls
46 lines (38 loc) · 1.17 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
# App
SPRING_APPLICATION_NAME=SpringAuthStarter
# Database (PostgreSQL)
DB_HOST=localhost
DB_PORT=5432
DB_NAME=auth_db
DB_USER=postgres
DB_PASSWORD=postgres
# JPA
JPA_DATABASE_PLATFORM=org.hibernate.dialect.PostgreSQLDialect
JPA_HIBERNATE_DDL_AUTO=update
JPA_SHOW_SQL=true
# JWT
JWT_SECRET=change_this_to_a_secure_random_key
JWT_EXPIRATION=3600000
# Exception handler
SPRING_MVC_THROW_EXCEPTION_IF_NO_HANDLER_FOUND=true
SPRING_WEB_RESOURCES_ADD_MAPPINGS=false
# Jackson
SPRING_JACKSON_SERIALIZATION_WRITE_DATES_AS_TIMESTAMPS=false
# Google OAuth2
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secret
GOOGLE_SCOPE=profile,email
# GitHub OAuth2
GITHUB_CLIENT_ID=your_github_client_id
GITHUB_CLIENT_SECRET=your_github_client_secret
GITHUB_SCOPE=user:email
GITHUB_CLIENT_NAME=GitHub
GITHUB_AUTH_URI=https://github.com/login/oauth/authorize
GITHUB_TOKEN_URI=https://github.com/login/oauth/access_token
GITHUB_USER_INFO_URI=https://api.github.com/user
GITHUB_USER_NAME_ATTRIBUTE=login
# Default accounts for initialization
DEFAULT_ADMIN_EMAIL=admin@example.com
DEFAULT_ADMIN_PASSWORD=Admin@123
DEFAULT_USER_EMAIL=user@example.com
DEFAULT_USER_PASSWORD=User@123