Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG SERVER_VERSION=v0.32.1
ARG SERVER_VERSION_STRING=v0.32.1
ARG SERVER_VERSION=v0.32.2
ARG SERVER_VERSION_STRING=v0.32.2

# Builder image to compile the website
FROM ubuntu:24.04 AS builder
Expand Down
6 changes: 3 additions & 3 deletions charts/openvsx/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ clamav:
pullPolicy: Always
resources:
requests:
cpu: 2
cpu: 4
memory: 4Gi
limits:
cpu: 4
cpu: 6
memory: 6Gi
service:
port: 9000
Expand All @@ -134,7 +134,7 @@ clamav:
MAX_FILE_COUNT: 100000
MAX_SINGLE_FILE_MB: 256
MAX_RECURSION: 16
MAX_THREADS: 4
MAX_THREADS: 10
SCAN_TIMEOUT_MINUTES: 5

yara:
Expand Down
120 changes: 60 additions & 60 deletions configuration/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
logging:
level:
root: "info"
# avoid log messages like: Received invalid Accept header. Assuming all media types are accepted
org.springframework.boot.autoconfigure.web.servlet.WelcomePageHandlerMapping: "error"

server:
address: 0.0.0.0
Expand Down Expand Up @@ -103,60 +105,60 @@ org:
miscellaneous:
allow-anonymous-data-usage: false
bucket4j:
enabled: true
cache-to-use: redis-cluster-jedis
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: 75
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
enabled: false
# cache-to-use: redis-cluster-jedis
# 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: 75
# 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:
token-prefix: ovsxat_
storage:
Expand Down Expand Up @@ -211,7 +213,7 @@ ovsx:
namespace-details-json:
ttl: PT1H
database-search:
ttl:PT1H
ttl: PT1H
extension-json:
ttl: PT1H
latest-extension-version:
Expand All @@ -233,17 +235,15 @@ ovsx:
subject: 'Open VSX Access Tokens Revoked'
template: 'revoked-access-tokens.html'

# tier-based rate limiting configuration
# dynamic tier-based rate limiting configuration
rate-limit:
enabled: false
enabled: true
ip-address-function: '(getHeader("X-Forwarded-For")?: getRemoteAddr()).split(",")[0].trim()'
usage-stats:
job-schedule: '*/30 * * * *'
filters:
- url: '/(api|vscode)/.*'
http-response-headers:
Access-Control-Allow-Origin: '*'
Access-Control-Expose-Headers: X-Rate-Limit-Retry-After-Seconds, X-Rate-Limit-Remaining
Access-Control-Expose-Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
default-http-content-type: application/json
default-http-response-body: >
{
Expand Down