-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathapplication-local.yml-example
More file actions
134 lines (126 loc) · 6.21 KB
/
application-local.yml-example
File metadata and controls
134 lines (126 loc) · 6.21 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
debug: true # Enable or disable debug mode
logging:
level:
com:
digitalsanctuary: DEBUG # Set logging level for digitalsanctuary package
org:
springframework:
web: DEBUG # Set logging level for web
web.filter.CommonsRequestLoggingFilter: DEBUG # Set logging level for CommonsRequestLoggingFilter
security: DEBUG # Set logging level for security
spring:
docker:
compose:
file: compose.dev.yaml
application:
name: Spring User Framework Demo App # Change this as per your convenience
datasource:
driverClassName: org.mariadb.jdbc.Driver # If you use mariadb database
password: mydatabaseuserpassword
url: jdbc:mariadb://mymariadb:3306/mydb?createDatabaseIfNotExist=true
username: mydatabaseuser
mail: # Mail configuration
username: AAAAAAAAA # Mail server username
password: BBBBBBBBBBB # Mail server password
host: mail.myhost.com # Mail server hostname
security:
oauth2:
enabled: true # Enable or disable OAuth2
client:
registration:
google:
client-id: 45XXXXXXXXX.apps.googleusercontent.com # Google client ID for OAuth2
client-secret: GOXXXXXXXXXXXXXXX # Google client secret for OAuth2
authorization-grant-type: authorization_code # Authorization grant type for OAuth2
redirect-uri: 'https://yourtestdomain.ngrok.io/login/oauth2/code/{registrationId}' # Redirect URI for OAuth2
scope:
- email # Request email scope for OAuth2
- profile # Request profile scope for OAuth2
client-name: Google # Name of the OAuth2 client
facebook:
client-id: 3333333333333333 # Facebook client ID for OAuth2
client-secret: 555555555555555GGGGGGGGG # Facebook client secret for OAuth2
authorization-grant-type: authorization_code # Authorization grant type for OAuth2
redirect-uri: 'https://yourtestdomain.ngrok.io/login/oauth2/code/{registrationId}' # Redirect URI for OAuth2
scope:
- email # Request email scope for OAuth2
- public_profile # Request public_profile scope for OAuth2
client-name: Facebook # Name of the OAuth2 client
keycloak:
client-id: ds-spring-user-framework-demo # Keycloak client ID for OAuth2
client-secret: ******************************* # Keycloak client secret for OAuth2
authorization-grant-type: authorization_code # Authorization grant type for OAuth2
redirect-uri: 'https://yourtestdomain.ngrok.io/login/oauth2/code/{registrationId}' # Redirect URI for OAuth2
scope:
- email # Request email scope for OAuth2
- profile # Request profile scope for OAuth2
- openid # Request oidc scope for OAuth2
client-name: Keycloak # Name of the OAuth2 client
provider: keycloak
provider:
keycloak: # https://www.keycloak.org/securing-apps/oidc-layers
issuer-uri: http://keycloak.domain.name/realms/myrealmname
authorization-uri: http://keycloak.domain.name/realms/myrealmname/protocol/openid-connect/auth
token-uri: http://keycloak.domain.name/realms/myrealmname/protocol/openid-connect/token
user-info-uri: http://keycloak.domain.name/realms/myrealmname/protocol/openid-connect/userinfo
user-name-attribute: preferred_username # https://www.keycloak.org/docs-api/latest/rest-api/index.html#UserRepresentation
jwk-set-uri: http://keycloak.domain.name/realms/myrealmname/protocol/openid-connect/certs
# apple: # This isn't working currently
# client-id: com.digitalsanctuary.springuserapp
# client-secret: XXXXXX
# authorization-grant-type: authorization_code
# redirect-uri: 'https://springuser.ngrok.io/login/oauth2/code/{registrationId}'
# scope:
# - email
# - name
# client-name: Apple
# client-authentication-method: client_secret_post
# provider:
# apple:
# authorization-uri: https://appleid.apple.com/auth/authorize?response_mode=form_post
# token-uri: https://appleid.apple.com/auth/token
# jwk-set-uri: https://appleid.apple.com/auth/keys
# user-name-attribute: sub
thymeleaf:
cache: 'false' # Enable or disable Thymeleaf cache
prefix: file:src/main/resources/templates/ # Prefix for Thymeleaf templates
devtools:
restart:
enabled: 'true' # Enable or disable devtools restart
poll-interval: '2s' # Poll interval for devtools restart
quiet-period: '1s' # Quiet period for devtools restart
additional-paths:
- src/main/java/ # Additional paths for devtools restart
livereload:
enabled: 'true' # Enable or disable livereload
https: 'true' # Enable or disable HTTPS for livereload
mvc:
log-request-details: 'true' # Enable or disable request details logging
web: # Web configuration
resources:
static-locations: file:src/main/resources/static/, classpath:/static/
cache:
period: 0
server:
#port: 8081 #change your server port here if 8080 can't be assigned for whatsoever reason
servlet:
session:
cookie:
secure: false # disabling secure cookie for local development
user:
audit:
flushOnWrite: true # Enable flush on write for user audit
registration: # User registration configuration
sendVerificationEmail: false # Disable sending verification email
googleEnabled: true # Enable Google registration
facebookEnabled: true # Enable Facebook registration
security:
# unprotectedURIs: /,/index.html,/favicon.ico,/css/*,/js/*,/js/user/*,/js/event/*,/img/*,/user/registration,/user/resendRegistrationToken,/user/resetPassword,/user/registrationConfirm,/user/changePassword,/user/savePassword,/oauth2/authorization/*,/login,/user/login,/user/login.html,/swagger-ui.html,/swagger-ui/**,/v3/api-docs/**
mail:
fromAddress: you@test.com # From address for outbound mail
management:
newrelic:
metrics:
export:
account-id: ACCTID # Account ID for New Relic metrics export
api-key: KEYYYYY # API key for New Relic metrics export