-
-
Notifications
You must be signed in to change notification settings - Fork 146
Expand file tree
/
Copy pathapplication.yml
More file actions
190 lines (189 loc) · 5.41 KB
/
Copy pathapplication.yml
File metadata and controls
190 lines (189 loc) · 5.41 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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
# This is the base configuration of the server running at open-vsx.org.
# Properties containing secrets are not included here, e.g. spring.datasource
# for database access and ovsx.storage.azure for file storage access.
# Additional properties are loaded from the file provided with the
# DEPLOYMENT_CONFIG environment variable.
logging:
pattern:
level: '%5p [${spring.application.name:},%X{traceId:-},%X{spanId:-}]'
server:
address: 0.0.0.0
port: 8080
shutdown: graceful
error:
path: /server-error
whitelabel:
enabled: false
compression:
enabled: true
mime-types: text/html,text/plain,text/css,application/javascript,application/json,text/xml,application/xml,application/xml+rss,text/javascript
min-response-size: 1024
jetty:
threads:
max-queue-capacity: 100
connection-idle-timeout: 10000
spring:
application:
name: openvsx-server
config:
import: file:${DEPLOYMENT_CONFIG}
cache:
jcache:
config: classpath:ehcache.xml
datasource:
hikari:
maximum-pool-size: 10
leak-detection-threshold: 30000
flyway:
baseline-on-migrate: false
jpa:
open-in-view: false
properties:
hibernate:
dialect: org.hibernate.dialect.PostgreSQLDialect
resources:
cache:
cachecontrol:
max-age: 4h
cache-public: true
session:
store-type: jdbc
lifecycle:
timeout-per-shutdown-phase: 10s
security:
oauth2:
client:
registration:
eclipse:
authorization-grant-type: authorization_code
scope: openvsx_publisher_agreement, profile
provider:
eclipse:
authorization-uri: https://accounts.eclipse.org/oauth2/authorize
token-uri: https://accounts.eclipse.org/oauth2/token
user-info-uri: https://accounts.eclipse.org/oauth2/UserInfo
user-name-attribute: name
user-info-authentication-method: header
management:
server:
port: 8081
health:
probes:
enabled: true
metrics:
tags:
application: ${spring.application.name}
environment: ${ENVNAME}
instance: ${HOSTNAME}
endpoints:
web:
exposure:
include:
- health
- prometheus
tracing:
sampling:
probability: 0.03
springdoc:
model-and-view-allowed: true
swagger-ui:
path: /swagger-ui
docExpansion: list
operationsSorter: alpha
supportedSubmitMethods:
- get
org:
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: '(getHeader("X-Forwarded-For")?: getRemoteAddr()).split(",")[0].trim()'
bandwidths:
- capacity: 75
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: '(getHeader("X-Forwarded-For")?: getRemoteAddr()).split(",")[0].trim()'
bandwidths:
- capacity: 15
time: 1
unit: seconds
- cache-name: buckets
url: '/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:
- execute-condition: getParameter("token") != null
cache-key: getParameter("token")
bandwidths:
- capacity: 15
time: 1
unit: seconds
- execute-condition: getParameter("token") == null
cache-key: '(getHeader("X-Forwarded-For")?: getRemoteAddr()).split(",")[0].trim()'
bandwidths:
- capacity: 15
time: 1
unit: seconds
ovsx:
storage:
primary-service: azure-blob
webui:
frontendRoutes: "/extension/**,/namespace/**,/user-settings/**,/admin-dashboard/**,/about,/publisher-agreement-*,/terms-of-use,/members,/adopters,/error"
eclipse:
base-url: https://api.eclipse.org/
publisher-agreement:
version: 1
publishing:
require-license: true
elasticsearch:
enabled: true
ssl: true
search:
relevance:
rating: 0.5
downloads: 2.0
timestamp: 1.2
migrations:
delay:
seconds: 10800
extension-control:
update-on-start: true
integrity:
key-pair: create
registry:
version: <SERVER_VERSION>