diff --git a/charts/penpot/Chart.yaml b/charts/penpot/Chart.yaml index f6b12d5..c1fdfa1 100644 --- a/charts/penpot/Chart.yaml +++ b/charts/penpot/Chart.yaml @@ -44,6 +44,8 @@ annotations: links: - name: GitHub Issue #16 url: https://github.com/penpot/penpot-helm/issues/16 + - kind: added + description: Allow to set the url of Privacy Policy and Terms of Service dependencies: - name: postgresql version: 15.x.x # appVersion >= 16.2.0 diff --git a/charts/penpot/README.md b/charts/penpot/README.md index 4941354..3bc65c6 100644 --- a/charts/penpot/README.md +++ b/charts/penpot/README.md @@ -86,6 +86,7 @@ helm install my-release -f values.yaml penpot/penpot | config.postgresql.secretKeys.postgresqlUriKey | string | `""` | The postgresql uri key to use from an existing secret. (postgresql://host:port/database). | | config.postgresql.secretKeys.usernameKey | string | `""` | The username key to use from an existing secret. | | config.postgresql.username | string | `"penpot"` | The database username to use. | +| config.privacyPolicyUri | string | `""` | Url adress to Privacy Policy (empty to hide the link) | | config.providers.existingSecret | string | `""` | The name of an existing secret to use. | | config.providers.github.clientID | string | `""` | The GitHub client ID to use. | | config.providers.github.clientSecret | string | `""` | The GitHub client secret to use. | @@ -152,6 +153,7 @@ helm install my-release -f values.yaml penpot/penpot | config.smtp.tls | bool | `true` | Whether to use TLS for the SMTP connection. | | config.smtp.username | string | `""` | The SMTP username to use. | | config.telemetryEnabled | bool | `true` | Whether to enable sending of anonymous telemetry data. | +| config.termsOfSrvicesUri | string | `""` | Url adress to Terms of Services (empty to hide the link) | ### Penpot backend diff --git a/charts/penpot/templates/frontend-deployment.yml b/charts/penpot/templates/frontend-deployment.yml index 09e1d9a..29a3424 100644 --- a/charts/penpot/templates/frontend-deployment.yml +++ b/charts/penpot/templates/frontend-deployment.yml @@ -61,6 +61,10 @@ spec: {{- else }} value: {{ .Values.config.internalResolver | quote }} {{- end }} + - name: PENPOT_TERMS_OF_SERVICE_URI + value: {{ .Values.config.termsOfSrvicesUri | quote }} + - name: PENPOT_PRIVACY_POLICY_URI + value: {{ .Values.config.privacyPolicyUri | quote }} volumeMounts: - mountPath: /opt/data/assets name: app-data diff --git a/charts/penpot/values.yaml b/charts/penpot/values.yaml index e597f25..ef57a9d 100644 --- a/charts/penpot/values.yaml +++ b/charts/penpot/values.yaml @@ -40,7 +40,6 @@ config: # -- The feature flags to enable. Check [the official docs](https://help.penpot.app/technical-guide/configuration/) for more info. # @section -- Configuration parameters flags: "enable-registration enable-login-with-password disable-email-verification enable-smtp" - # -- A random secret key needed for persistent user sessions. Generate with `python3 -c "import secrets; print(secrets.token_urlsafe(64))"` for example. # @section -- Configuration parameters apiSecretKey: "kmZ96pAxhTgk3HZvvBkPeVTspGBneKVLEpO_3ecORs_gwACENZ77z05zCe7skvPsQ3jI3QgkULQOWCuLjmjQsg" @@ -60,6 +59,12 @@ config: # -- Add custom resolver for frontend. e.g. 192.168.1.1 # @section -- Configuration parameters internalResolver: "" + # -- Url adress to Terms of Services (empty to hide the link) + # @section -- Configuration parameters + termsOfSrvicesUri: "" + # -- Url adress to Privacy Policy (empty to hide the link) + # @section -- Configuration parameters + privacyPolicyUri: "" postgresql: # -- The PostgreSQL host to connect to. Empty to use dependencies.