Repository navigation
Expand file tree
/
Copy pathapplication.yml
More file actions
165 lines (157 loc) · 4.7 KB
/
Copy pathapplication.yml
File metadata and controls
165 lines (157 loc) · 4.7 KB
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
logging:
pattern:
level: '%5p [${spring.application.name:},%X{traceId:-},%X{spanId:-}]'
server:
port: 8080
jetty:
threads:
max-queue-capacity: 100
spring:
application:
name: openvsx-server
autoconfigure:
# don't send traces to Zipkin in development
exclude: org.springframework.boot.zipkin.autoconfigure.ZipkinAutoConfiguration
profiles:
include: ovsx
cache:
jcache:
config: classpath:ehcache.xml
datasource:
url: jdbc:postgresql://localhost:5432/openvsx
username: openvsx
password: openvsx
# Download analytics is disabled by default. When enabled it keeps its time-series schema in a
# separate database, migrated on its own and requiring the timescaledb extension:
# ovsx.analytics.enabled: true
# ovsx.analytics.datasource.url: jdbc:postgresql://localhost:5433/openvsx_timeseries
# ovsx.analytics.datasource.username: openvsx
# ovsx.analytics.datasource.password: openvsx
# ovsx.analytics.datasource.maximum-pool-size: 5
flyway:
baseline-on-migrate: true
baseline-version: 0.1.0
baseline-description: JobRunr tables
jpa:
open-in-view: false
properties:
hibernate:
dialect: org.hibernate.dialect.PostgreSQLDialect
hibernate:
ddl-auto: none
session:
store-type: jdbc
jdbc:
initialize-schema: never
thymeleaf:
check-template-location: false
security:
oauth2:
client:
registration:
github:
client-id: none
client-secret: none
management:
health:
probes:
enabled: true
endpoints:
web:
exposure:
include:
- health
- metrics
- prometheus
metrics:
distribution:
percentiles-histogram:
http:
server:
requests: true
client:
requests: true
springdoc:
model-and-view-allowed: true
api-docs:
version: openapi_3_0
swagger-ui:
path: /swagger-ui
docExpansion: list
operationsSorter: alpha
supportedSubmitMethods:
- get
jobrunr:
job-scheduler:
enabled: true
background-job-server:
enabled: true
worker-count: 2
dashboard:
enabled: false
database:
type: sql
miscellaneous:
allow-anonymous-data-usage: false
bucket4j:
enabled: true
filters:
- cache-name: buckets
url: '/api/-/(namespace/create|publish)'
http-response-headers:
Access-Control-Allow-Origin: '*'
Access-Control-Expose-Headers: X-Rate-Limit-Retry-After-Seconds, X-Rate-Limit-Remaining
rate-limits:
- cache-key: getParameter("token")
bandwidths:
- capacity: 15
time: 1
unit: seconds
- cache-name: buckets
url: '/vscode/asset/.*/.*/.*/Microsoft.VisualStudio.Services.Icons.Default'
http-response-headers:
Access-Control-Allow-Origin: '*'
Access-Control-Expose-Headers: X-Rate-Limit-Retry-After-Seconds, X-Rate-Limit-Remaining
rate-limits:
- cache-key: getRemoteAddr()
bandwidths:
- capacity: 75
time: 1
unit: seconds
- cache-name: buckets
url: '/vscode/(?!asset/.*/.*/.*/Microsoft.VisualStudio.Services.Icons.Default).*|/api/(?!(.*/.*/review(/delete)?)|(-/(namespace/create|publish))).*'
http-response-headers:
Access-Control-Allow-Origin: '*'
Access-Control-Expose-Headers: X-Rate-Limit-Retry-After-Seconds, X-Rate-Limit-Remaining
rate-limits:
- cache-key: getRemoteAddr()
bandwidths:
- capacity: 15
time: 1
unit: seconds
ovsx:
publisher-agreement:
# empty disables the agreement; a version such as 1, 1.0 or 1.0.0 requires signing it (a new major version requires re-signing unless allowed-versions says otherwise)
version: ''
# versions besides the current one whose signatures stay valid, such as '1.1,1.2' (quote a single one such as '1.10', which YAML reads as 1.1); empty accepts the same or a higher major version
allowed-versions: ''
# Markdown text of the agreement, served at /api/publisher-agreement; a Spring resource location such as file:/etc/openvsx/agreement.md
text: ''
databasesearch:
enabled: false
elasticsearch:
clear-on-start: true
host: 'localhost:9200'
extension-control:
update-on-start: true
integrity:
key-pair: create # create, renew, delete, 'undefined'
registry:
version: <OPENVSX_VERSION>
# Set this in any deployment reachable from the open web, or the URLs in a response are derived
# from headers the client sends. See doc/configuration.md, Server URL.
# server:
# url: https://openvsx.example
storage:
local:
directory: /tmp