feat(server, helm): add guest role feature flag

This commit is contained in:
Gergő Jedlicska
2023-07-26 21:00:51 +02:00
parent 6d4d4eef33
commit 5942c09671
3 changed files with 12 additions and 0 deletions
@@ -187,3 +187,7 @@ export function speckleAutomateUrl() {
export function ignoreMissingMigrations() {
return ['1', 'true'].includes(process.env.IGNORE_MISSING_MIRATIONS || 'false')
}
export function enableServerGuests() {
return ['1', 'true'].includes(process.env.ENABLE_SERVER_GUESTS || 'false')
}
@@ -209,6 +209,11 @@ spec:
key: {{ default "google_client_secret" .Values.server.auth.google.clientSecret.secretKey }}
{{- end }}
{{- if .Values.serverGuestsEnabled }}
- name: ENABLE_SERVER_GUESTS
value: true
{{- end }}
# Github Auth
{{- if .Values.server.auth.github.enabled }}
- name: STRATEGY_GITHUB
+3
View File
@@ -97,6 +97,9 @@ file_size_limit_mb: 100
##
enable_prometheus_monitoring: false
## @param serverGuestsEnabled Enables users to join the server as Guests, having limiter permissions
serverGuestsEnabled: false
prometheusMonitoring:
## @param prometheusMonitoring.namespace If provided, deploys Speckle's Prometheus resources (e.g. ServiceMonitor) in the given namespace
## Prometheus prior to v0.19.0, or any version when deployed with default parameters, expects ServiceMonitors to be deployed within the same namespace.