-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapplication-dev.yml
111 lines (100 loc) · 2.5 KB
/
application-dev.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
spring:
servlet:
multipart:
enabled: true
max-file-size: 250MB
max-request-size: 250MB
rabbitmq:
host: dapp-rabbitmq
port: 5672
username: guest
password: guest
redis:
host: dapp-redis
port: 6379
password: "password"
flush-mode: immediate
session:
store-type: redis
timeout: 2d
flyway:
enabled: true
locations: "classpath:db/migration/{vendor}"
# primary datasource
datasource:
username: "postgres"
password: "password"
url: "jdbc:postgresql://dapp-db:5432/deployapp_storage_dev_1"
# comma-separated, see https://github.com/spring-projects/spring-framework/issues/16381
custom_cors:
origins: http://localhost:3000,https://deploy.plan.ovh
custom_app:
lock_registry_key_prefix: "dapp_storage_lock"
# app parsing threads
core_pool_size: 2
max_pool_size: 2
queue_capacity: 40 # 60 mins / 1.5 min per app parsing (conservative estimate)
rubyCleanSleep: 10000
management:
info:
git:
mode: full
endpoints:
web:
cors:
allowed-origins: '*'
allowed-methods: GET
health:
# https://stackoverflow.com/questions/46326527/spring-boot-actuator-endpoint-sensitivity-vs-security-enablement
info:
sensitive: false
exposure:
include:
- info
- beans
- loggers
# https://springdoc.org/
# https://stackoverflow.com/questions/65820916/i-have-installed-openapi-3-using-springdoc-but-the-url-is-strange-can-i-change
springdoc:
api-docs:
path: /api-docs
swagger-ui:
path: /api-docs/ui
microservice-endpoints:
main: http://dapp-backend:8080
# for async processing with jobrunr
org:
jobrunr:
job-scheduler:
enabled: true
database:
type: redis-lettuce
background-job-server:
worker_count: 2
enabled: true
poll-interval-in-seconds: 5
dashboard:
enabled: false
custom_jobrunr:
keepalive-interval: PT30S
logging:
level:
org:
springframework:
web: DEBUG
security: DEBUG
# filter:
# CommonsRequestLoggingFilter: DEBUG
server:
forward-headers-strategy: framework # https://github.com/springdoc/springdoc-openapi/issues/171
servlet:
session:
cookie:
# https://stackoverflow.com/questions/33095345/how-to-change-spring-session-redis-cookie-name
name: "DEPLOYAPP_SESSION"
path: /
error:
include-message: always
include-binding-errors: always
include-stacktrace: on_param
include-exception: true