Skip to content

Commit e7d5e34

Browse files
committed
fix self-registration; use security.user.* properties as authoritative source for credentials.
1 parent 853e6c0 commit e7d5e34

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ dependencyManagement {
3636
dependencies {
3737
compile "org.springframework.boot:spring-boot-starter"
3838
compile "org.springframework.boot:spring-boot-starter-security"
39+
compile "de.codecentric:spring-boot-admin-starter-client:${version}"
3940
compile "de.codecentric:spring-boot-admin-server:${version}"
4041
compile "de.codecentric:spring-boot-admin-server-ui:${version}"
4142
compile "de.codecentric:spring-boot-admin-server-ui-login:${version}"
-23.7 MB
Binary file not shown.

src/main/resources/application.yml

+11-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
server:
2+
port: 8080
3+
14
management:
25
context-path: /mgmt
36

@@ -9,10 +12,14 @@ security:
912
spring:
1013
boot:
1114
admin:
12-
url: http://spring-boot-admin:8080
13-
auth:
14-
username: admin
15-
password: password
15+
url: http://localhost:${server.port}
16+
username: ${security.user.name}
17+
password: ${security.user.password}
18+
client:
19+
service-base-url: http://localhost:${server.port}
20+
metadata:
21+
user.name: ${security.user.name}
22+
user.password: ${security.user.password}
1623
notify:
1724
rate: 60000
1825
reminder:

0 commit comments

Comments
 (0)