From 3726694f506dd31ce6e25cd234be5f8047c09862 Mon Sep 17 00:00:00 2001 From: Dmitrii Sashchenko Date: Fri, 27 Mar 2026 09:09:08 +0000 Subject: [PATCH 1/5] =?UTF-8?q?=D0=BF=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D0=BD?= =?UTF-8?q?=D0=BD=D1=8B=D0=B5=20=D0=BF=D0=BE=D0=BB=D0=B8=D1=82=D0=B8=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .helm/templates/_envs.tpl | 8 ++++++++ .helm/values.yaml | 9 +++++++++ 2 files changed, 17 insertions(+) diff --git a/.helm/templates/_envs.tpl b/.helm/templates/_envs.tpl index 683cf2f..60b6b7f 100644 --- a/.helm/templates/_envs.tpl +++ b/.helm/templates/_envs.tpl @@ -24,6 +24,14 @@ value: "HRBOX" - name: ENABLE_FRONTEND value: {{ .Values.app.front2 | quote }} +- name: ALLOW_CUSTOM_POLICY_URLS + value: {{ .Values.app.custom-policy.enabled | quote }} +{{- if .Values.app.custom-policy.enabled }} +- name: CUSTOM_PRIVACY_POLICY_URL + value: {{ .Values.app.custom-policy.privacy-url | quote }} +- name: CUSTOM_TERMS_URL + value: {{ .Values.app.custom-policy.terms-url | quote }} +{{- end }} # NATS - name: BROKER diff --git a/.helm/values.yaml b/.helm/values.yaml index 7417d95..6a01b46 100644 --- a/.helm/values.yaml +++ b/.helm/values.yaml @@ -39,6 +39,15 @@ app: worker: 2 chatbox: 2 geonames: 1 + + # Показ собственной политики конфиденциальности и terms of use + # privacy-url и terms-url передаются в приложение только если enabled установлена в true + # если enabled = true, но privacy-url и terms-url закомментированы, + # то будут использоваться ссылки https://hrbox.io/policy и https://hrbox.io/terms + custom-policy: + enabled: false + # privacy-url: "https://example.com/privacy" + # terms-url: "https://example.com/terms" # PostgreSQL база данных # Требования: PostgreSQL 14+ From 4ab93e8e787a3896c4d58b294cea278d97a1b989 Mon Sep 17 00:00:00 2001 From: Dmitrii Sashchenko Date: Fri, 27 Mar 2026 09:13:14 +0000 Subject: [PATCH 2/5] =?UTF-8?q?=D0=BD=D1=83=20=D0=B4=D0=B0=20=D0=B4=D0=B5?= =?UTF-8?q?=D1=84=D0=B8=D1=81=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .helm/templates/_envs.tpl | 8 ++++---- .helm/values.yaml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.helm/templates/_envs.tpl b/.helm/templates/_envs.tpl index 60b6b7f..9497645 100644 --- a/.helm/templates/_envs.tpl +++ b/.helm/templates/_envs.tpl @@ -25,12 +25,12 @@ - name: ENABLE_FRONTEND value: {{ .Values.app.front2 | quote }} - name: ALLOW_CUSTOM_POLICY_URLS - value: {{ .Values.app.custom-policy.enabled | quote }} -{{- if .Values.app.custom-policy.enabled }} + value: {{ .Values.app.custom_policy.enabled | quote }} +{{- if .Values.app.custom_policy.enabled }} - name: CUSTOM_PRIVACY_POLICY_URL - value: {{ .Values.app.custom-policy.privacy-url | quote }} + value: {{ .Values.app.custom_policy.privacy-url | quote }} - name: CUSTOM_TERMS_URL - value: {{ .Values.app.custom-policy.terms-url | quote }} + value: {{ .Values.app.custom_policy.terms-url | quote }} {{- end }} # NATS diff --git a/.helm/values.yaml b/.helm/values.yaml index 6a01b46..fb5df94 100644 --- a/.helm/values.yaml +++ b/.helm/values.yaml @@ -44,7 +44,7 @@ app: # privacy-url и terms-url передаются в приложение только если enabled установлена в true # если enabled = true, но privacy-url и terms-url закомментированы, # то будут использоваться ссылки https://hrbox.io/policy и https://hrbox.io/terms - custom-policy: + custom_policy: enabled: false # privacy-url: "https://example.com/privacy" # terms-url: "https://example.com/terms" From b9a25e7480b806742e7a09bc7154b47f6d8952ee Mon Sep 17 00:00:00 2001 From: Dmitrii Sashchenko Date: Fri, 27 Mar 2026 09:14:09 +0000 Subject: [PATCH 3/5] =?UTF-8?q?=D1=82=D1=83=D1=82=20=D1=82=D0=BE=D0=B6?= =?UTF-8?q?=D0=B5=20=D0=B4=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .helm/templates/_envs.tpl | 4 ++-- .helm/values.yaml | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.helm/templates/_envs.tpl b/.helm/templates/_envs.tpl index 9497645..e3d271e 100644 --- a/.helm/templates/_envs.tpl +++ b/.helm/templates/_envs.tpl @@ -28,9 +28,9 @@ value: {{ .Values.app.custom_policy.enabled | quote }} {{- if .Values.app.custom_policy.enabled }} - name: CUSTOM_PRIVACY_POLICY_URL - value: {{ .Values.app.custom_policy.privacy-url | quote }} + value: {{ .Values.app.custom_policy.privacy_url | quote }} - name: CUSTOM_TERMS_URL - value: {{ .Values.app.custom_policy.terms-url | quote }} + value: {{ .Values.app.custom_policy.terms_url | quote }} {{- end }} # NATS diff --git a/.helm/values.yaml b/.helm/values.yaml index fb5df94..b84d7fa 100644 --- a/.helm/values.yaml +++ b/.helm/values.yaml @@ -41,13 +41,13 @@ app: geonames: 1 # Показ собственной политики конфиденциальности и terms of use - # privacy-url и terms-url передаются в приложение только если enabled установлена в true - # если enabled = true, но privacy-url и terms-url закомментированы, + # privacy_url и terms_url передаются в приложение только если enabled установлена в true + # если enabled = true, но privacy_url и terms_url закомментированы, # то будут использоваться ссылки https://hrbox.io/policy и https://hrbox.io/terms custom_policy: enabled: false - # privacy-url: "https://example.com/privacy" - # terms-url: "https://example.com/terms" + # privacy_url: "https://example.com/privacy" + # terms_url: "https://example.com/terms" # PostgreSQL база данных # Требования: PostgreSQL 14+ From 0604b0d25d856efd8b40ecfbf3d31398dc2d6477 Mon Sep 17 00:00:00 2001 From: Dmitrii Sashchenko Date: Fri, 27 Mar 2026 09:21:00 +0000 Subject: [PATCH 4/5] =?UTF-8?q?=D1=82=D0=B0=D0=BA=20=D0=B4=D0=BE=D0=BB?= =?UTF-8?q?=D0=B6=D0=BD=D0=BE=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=D1=82?= =?UTF-8?q?=D1=8C=20=D0=B5=D1=81=D0=BB=D0=B8=20=D0=BD=D0=B5=D1=82=20=D0=B1?= =?UTF-8?q?=D0=BB=D0=BE=D0=BA=D0=B0=20custom=5Fpolicy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .helm/templates/_envs.tpl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.helm/templates/_envs.tpl b/.helm/templates/_envs.tpl index e3d271e..f715491 100644 --- a/.helm/templates/_envs.tpl +++ b/.helm/templates/_envs.tpl @@ -24,14 +24,19 @@ value: "HRBOX" - name: ENABLE_FRONTEND value: {{ .Values.app.front2 | quote }} +{{- if .Values.app.custom_policy }} - name: ALLOW_CUSTOM_POLICY_URLS - value: {{ .Values.app.custom_policy.enabled | quote }} + value: {{ .Values.app.custom_policy.enabled | default false | quote }} {{- if .Values.app.custom_policy.enabled }} - name: CUSTOM_PRIVACY_POLICY_URL value: {{ .Values.app.custom_policy.privacy_url | quote }} - name: CUSTOM_TERMS_URL value: {{ .Values.app.custom_policy.terms_url | quote }} {{- end }} +{{- else }} +- name: ALLOW_CUSTOM_POLICY_URLS + value: "false" +{{- end }} # NATS - name: BROKER From f056ba78edd0941d31c71fd776e65d490366ef77 Mon Sep 17 00:00:00 2001 From: Dmitrii Sashchenko Date: Fri, 27 Mar 2026 09:55:03 +0000 Subject: [PATCH 5/5] default hrboxio --- .helm/templates/_envs.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.helm/templates/_envs.tpl b/.helm/templates/_envs.tpl index f715491..80e3f8c 100644 --- a/.helm/templates/_envs.tpl +++ b/.helm/templates/_envs.tpl @@ -29,9 +29,9 @@ value: {{ .Values.app.custom_policy.enabled | default false | quote }} {{- if .Values.app.custom_policy.enabled }} - name: CUSTOM_PRIVACY_POLICY_URL - value: {{ .Values.app.custom_policy.privacy_url | quote }} + value: {{ .Values.app.custom_policy.privacy_url | default "https://hrbox.io/policy" | quote }} - name: CUSTOM_TERMS_URL - value: {{ .Values.app.custom_policy.terms_url | quote }} + value: {{ .Values.app.custom_policy.terms_url | default "https://hrbox.io/terms" | quote }} {{- end }} {{- else }} - name: ALLOW_CUSTOM_POLICY_URLS