Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Rate Limit details #158

Merged
merged 5 commits into from
Aug 1, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
10 changes: 10 additions & 0 deletions helm/flowforge/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,16 @@ Enables FlowForge Telemetry
- `forge.privateCA.configMapName` name of ConfigMap to store the CA Cert bundle (default `ff-ca-certs`)
- `forge.privateCA.certs` base64 encoded CA certificate PEM bundle of trusted certificates. This needs to be generated without line breaks e.g. `base64 -w 0 certs.pem` (default not set)

### Rate Limiting

- `forge.rate_limits.enabled` (default `false`)
- `forge.rate_limits.global` (default `false`)
- `forge.rate_limits.timeWindow` Time in milliseconds to evaluate requests over (default 60000)
- `forge.rate_limits.max` Max requests per timeWindow (default: 1000)
- `forge.rate_limits.maxAnonymous` Max anonymous requests per timeWindow (default: 10)
hardillb marked this conversation as resolved.
Show resolved Hide resolved

Everything under `forge.rate_limits` is used as input to Fastify Rate Limit plugin, further options can be found [here](https://github.com/fastify/fastify-rate-limit#options)

### Ingress
- `ingress.annotations` ingress annotations (default is `{}`). This value is also applied to Editor instances created by FlowForge.
- `ingress.className` ingress class name (default is `"""`). This value is also applied to Editor instances created by FlowForge.
Expand Down
4 changes: 4 additions & 0 deletions helm/flowforge/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,7 @@ data:
branding:
{{ toYaml .Values.forge.branding | indent 6 }}
{{- end }}
{{- if .Values.forge.rate_limits }}
rate_limits:
{{ toYaml .Values.forge.rate_limits | indent 6 }}
{{- end }}
hardillb marked this conversation as resolved.
Show resolved Hide resolved
Loading