Skip to content

Commit

Permalink
Closes #247 Add healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
bukajsytlos committed Nov 9, 2018
1 parent d5de7cc commit aef8674
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 5 deletions.
12 changes: 11 additions & 1 deletion src/main/resources/config/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,17 @@ spring:
password: ${DATABASE_PASSWORD:banana}
jpa:
show-sql: true

boot:
admin:
client:
url: ${ADMIN_SERVER_URL:http://localhost:8030}
username: ${ADMIN_SERVER_USERNAME:admin}
password: ${ADMIN_SERVER_PASSWORD:banana}
instance:
metadata:
user:
name: ${ADMIN_CLIENT_USERNAME:faf-java-api}
password: ${ADMIN_CLIENT_PASSWORD:banana}
logging:
level:
com.faforever.api: trace
11 changes: 11 additions & 0 deletions src/main/resources/config/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,17 @@ spring:
password: ${DATABASE_PASSWORD}
jpa:
show-sql: false
boot:
admin:
client:
url: ${ADMIN_SERVER_URL}
username: ${ADMIN_SERVER_USERNAME}
password: ${ADMIN_SERVER_PASSWORD}
instance:
metadata:
user:
name: ${ADMIN_CLIENT_USERNAME}
password: ${ADMIN_CLIENT_PASSWORD}

logging:
path: ${LOG_FILE_DIRECTORY:/tmp}
12 changes: 8 additions & 4 deletions src/main/resources/config/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,14 @@ server:
max-http-post-size: 314572800

management:
port: 8011
security:
enabled: false

server:
port: ${MANAGEMENT_PORT:8011}
address: ${MANAGEMENT_ADDRESS:}
endpoints:
web:
base-path: ${MANAGEMENT_BASE_PATH:/manage}
exposure:
include: '*'
logging:
level:
com.faforever: ${LOG_LEVEL:info}

0 comments on commit aef8674

Please sign in to comment.