-
Notifications
You must be signed in to change notification settings - Fork 12
/
application.yml
121 lines (98 loc) · 3.63 KB
/
application.yml
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
# logging is defined in logback-spring.xml
server:
port: ${ANET_PORT:8080}
spring:
datasource:
url: jdbc:postgresql://${ANET_DB_SERVER:localhost}:${ANET_DB_EXPOSED_PORT:5432}/${ANET_DB_NAME}
username: ${ANET_DB_USERNAME}
password: ${ANET_DB_PASSWORD}
driver-class-name: org.postgresql.Driver
# You can tweak the database connection pool settings for your deployment environment:
hikari:
minimum-idle: 10
maximum-pool-size: 80
connection-timeout: 5000
# Security through Keycloak
security:
oauth2:
resourceserver:
jwt:
jwk-set-uri: http://${ANET_KEYCLOAK_SERVER:localhost}:${ANET_KEYCLOAK_PORT:9080}/realms/${ANET_KEYCLOAK_REALM:ANET}/protocol/openid-connect/certs
client:
registration:
keycloak:
client-id: ${ANET_KEYCLOAK_CLIENT:ANET-Client}
client-secret: ${ANET_KEYCLOAK_CLIENT_SECRET:12869b4c-74ac-43f9-b71e-ff74e07babf9}
provider:
keycloak:
issuer-uri: http://${ANET_KEYCLOAK_SERVER:localhost}:${ANET_KEYCLOAK_PORT:9080}/realms/${ANET_KEYCLOAK_REALM:ANET}
anet:
# Flag to tell the server to redirect all HTTP traffic to HTTPS
redirect-to-https: false
# Execution time limit for GraphQL requests in milliseconds;
# if you comment it out, there is *no* limit!
graphql-request-timeout-ms: 15000
# Whether to periodically run the task that automatically inactivates users;
# further configuration for this is in the dictionary
automatically-inactivate-users: true
# Settings for the SMTP server to send email
smtp:
hostname: ${ANET_SMTP_SERVER:localhost}
port: ${ANET_SMTP_PORT:587}
username: ${ANET_SMTP_USERNAME}
password: ${ANET_SMTP_PASSWORD}
ssl-trust: ${ANET_SMTP_SSLTRUST}
start-tls: ${ANET_SMTP_STARTTLS:false}
disabled: ${ANET_SMTP_DISABLE:true}
nb-of-hours-for-stale-emails: 72
# The email address that all automated emails should come from.
# ex: "ANET <[email protected]>"
email-from-addr: "Anet Testing <[email protected]>"
# The URL that should be used for links in emails
# ex: "http://anet.yourdomain"
# Should not include an ending slash!
server-url: "http://localhost:3000"
keycloak-configuration:
realm: ${ANET_KEYCLOAK_REALM:ANET}
auth-server-url: http://${ANET_KEYCLOAK_SERVER:localhost}:${ANET_KEYCLOAK_PORT:9080}
resource: ${ANET_KEYCLOAK_CLIENT_PUBLIC:ANET-Client-public}
show-logout-link: true
# Set path of dictionary to be loaded
# If you want to place the dictionary file under a subfolder of main application folder,
# please do not forget to update this parameter!
# For example: If you wish to place dictionary file under a folder named as "config" then update it as:
# anet-dictionary-name: "config/anet-dictionary.yml"
anet-dictionary-name: ${ANET_DICTIONARY_NAME:anet-dictionary.yml}
# Path to (optional) local map imagery in the dictionary which is served via /imagery/**
imagery-path: ./imagery
# Path to dashboards in the dictionary which are served via /data/**
dashboards-path: ./data
---
spring:
config:
activate:
on-profile: "dev | test | prod"
liquibase:
# Allow override of defaults
enabled: ${ANET_DB_MIGRATE:true}
drop-first: ${ANET_DB_DROP:false}
---
spring:
config:
activate:
on-profile: "dev | test"
liquibase:
# Load development data
change-log: file:db-changelog-dev.yml
---
spring:
config:
activate:
on-profile: "test"
anet:
# Don't start the workers in the test profile
no-workers: true
# Not actually used by us, but needed for the default configuration bean used for testing
graphql:
endpoint:
url: ""