application.yml 992 Bytes
Newer Older
1
---
2
info:
3 4
  scm-url: "@scm.url@"
  build-url: "http://travis-ci.org/@env.TRAVIS_REPO_SLUG@/builds/@env.TRAVIS_BUILD_ID@"
5 6
  stage: test

7
logging:
8 9 10 11
  file: "target/boot-admin-sample.log"

management:
  context-path: "/actuator"
12 13 14

spring:
  application:
15 16 17 18
    name: "@pom.artifactId@"
  boot:
    admin:
      url: http://localhost:8080
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
  profiles:
    active:
      - secure

---
spring:
  profiles: insecure

management:
  security:
    enabled: false

security:
  basic:
    enabled: false

---
spring:
  profiles: secure
  boot:
    admin:
40 41 42 43 44 45
      username: "${security.user.name}"       #These two are needed so that the client
      password: "${security.user.password}"   #can register at the protected server api
      client:
        metadata:
          user.name: "${security.user.name}"          #These two are needed so that the server
          user.password:  "${security.user.password}" #can access the proteceted client endpoints
46

47 48 49 50
security:
  user:
    name: user
    password: pass
51

52