From 376d579f7e16db53a5e9ec5804cda2e5fcf1e0c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9l=C3=A8ne=20Meneuvrier?= Date: Fri, 19 Apr 2024 15:28:11 +0200 Subject: [PATCH] delete tiBot #2489 --- .env | 3 +-- .env.sample | 3 +-- config/packages/twig.yaml | 6 ------ config/services.yaml | 1 - templates/back/base_bo.html.twig | 7 ------- templates/base.html.twig | 1 - 6 files changed, 2 insertions(+), 19 deletions(-) diff --git a/.env b/.env index 9894665bd..374d8a0af 100755 --- a/.env +++ b/.env @@ -47,8 +47,7 @@ MATOMO_SITE_ID=1 ZAPIER_OILHI_TOKEN= ZAPIER_OILHI_USER_ID= ZAPIER_OILHI_CREATE_AIRTABLE_RECORD_ZAP_ID= -SECURITY_CSP_HEADER_VALUE="default-src 'self' https://interfaces.zapier.com https://tibot-histologe.zapier.app; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://cdn.matomo.cloud https://cdn.jsdelivr.net https://interfaces.zapier.com; style-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net; img-src 'self' data: blob: https://voxusagers.numerique.gouv.fr https://*.tile.openstreetmap.org https://cdn.jsdelivr.net https://jedonnemonavis.numerique.gouv.fr; connect-src 'self' https://api-adresse.data.gouv.fr https://cdn.matomo.cloud https://histologe.matomo.cloud https://koumoul.com https://sentry.incubateur.net; font-src 'self'; frame-src 'none'; object-src 'none';" -CHATBOT_ENABLE=0 +SECURITY_CSP_HEADER_VALUE="default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://cdn.matomo.cloud https://cdn.jsdelivr.net; style-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net; img-src 'self' data: blob: https://voxusagers.numerique.gouv.fr https://*.tile.openstreetmap.org https://cdn.jsdelivr.net https://jedonnemonavis.numerique.gouv.fr; connect-src 'self' https://api-adresse.data.gouv.fr https://cdn.matomo.cloud https://histologe.matomo.cloud https://koumoul.com https://sentry.incubateur.net; font-src 'self'; frame-src 'none'; object-src 'none';" MAINTENANCE_ENABLE=0 MAINTENANCE_BANNER_ENABLE=0 MAINTENANCE_BANNER_MESSAGE="Une opération de maintenance est prévu le XX/XX/XXXX à XX:XX. Le site sera indisponible pendant la durée de l'opération." diff --git a/.env.sample b/.env.sample index 32849ed78..fee693ed1 100755 --- a/.env.sample +++ b/.env.sample @@ -36,8 +36,7 @@ MATOMO_SITE_ID=1 ZAPIER_OILHI_TOKEN= ZAPIER_OILHI_ID= ZAPIER_OILHI_CREATE_AIRTABLE_RECORD_ZAP_ID= -SECURITY_CSP_HEADER_VALUE="default-src 'self' https://interfaces.zapier.com https://tibot-histologe.zapier.app; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://cdn.matomo.cloud https://cdn.jsdelivr.net https://interfaces.zapier.com; style-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net; img-src 'self' data: blob: https://voxusagers.numerique.gouv.fr https://*.tile.openstreetmap.org https://cdn.jsdelivr.net https://jedonnemonavis.numerique.gouv.fr; connect-src 'self' https://api-adresse.data.gouv.fr https://cdn.matomo.cloud https://histologe.matomo.cloud https://koumoul.com https://sentry.incubateur.net; font-src 'self'; frame-src 'none'; object-src 'none';" -CHATBOT_ENABLE=0 +SECURITY_CSP_HEADER_VALUE="default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://cdn.matomo.cloud https://cdn.jsdelivr.net; style-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net; img-src 'self' data: blob: https://voxusagers.numerique.gouv.fr https://*.tile.openstreetmap.org https://cdn.jsdelivr.net https://jedonnemonavis.numerique.gouv.fr; connect-src 'self' https://api-adresse.data.gouv.fr https://cdn.matomo.cloud https://histologe.matomo.cloud https://koumoul.com https://sentry.incubateur.net; font-src 'self'; frame-src 'none'; object-src 'none';" MAINTENANCE_ENABLE=0 MAINTENANCE_BANNER_ENABLE=0 MAINTENANCE_BANNER_MESSAGE="Une opération de maintenance est prévu le XX/XX/XXXX à XX:XX. Le site sera indisponible pendant la durée de l'opération." diff --git a/config/packages/twig.yaml b/config/packages/twig.yaml index 8a06ac11a..a76b01bce 100755 --- a/config/packages/twig.yaml +++ b/config/packages/twig.yaml @@ -26,8 +26,6 @@ when@test: globals: matomo: enable: 0 # matomo is useless in test env - chatbot: - enable: 0 # chatbot is useless in test env when@dev: twig: @@ -37,8 +35,6 @@ when@dev: cdn: http://localhost:8083/matomo.js site_id: 1 enable: '%matomo_enable%' - chatbot: - enable: '%chatbot_enable%' when@prod: twig: @@ -48,5 +44,3 @@ when@prod: cdn: //cdn.matomo.cloud/histologe.matomo.cloud/matomo.js site_id: '%matomo_site_id%' enable: '%matomo_enable%' - chatbot: - enable: '%chatbot_enable%' diff --git a/config/services.yaml b/config/services.yaml index 9bc8de0a3..626e17320 100755 --- a/config/services.yaml +++ b/config/services.yaml @@ -35,7 +35,6 @@ parameters: platform_name: 'Histologe' matomo_enable: '%env(bool:MATOMO_ENABLE)%' matomo_site_id: '%env(resolve:MATOMO_SITE_ID)%' - chatbot_enable: '%env(bool:CHATBOT_ENABLE)%' maintenance_enable: '%env(bool:MAINTENANCE_ENABLE)%' maintenance_banner_enable: '%env(bool:MAINTENANCE_BANNER_ENABLE)%' maintenance_banner_message: '%env(resolve:MAINTENANCE_BANNER_MESSAGE)%' diff --git a/templates/back/base_bo.html.twig b/templates/back/base_bo.html.twig index e470673ef..abb56c1d2 100755 --- a/templates/back/base_bo.html.twig +++ b/templates/back/base_bo.html.twig @@ -25,11 +25,4 @@ {% endblock %} {% block javascripts %} -{% endblock %} - -{% block chatbot %} - {% if chatbot.enable %} - - - {% endif %} {% endblock %} \ No newline at end of file diff --git a/templates/base.html.twig b/templates/base.html.twig index a9e5ad9d3..85527a4a3 100755 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -201,6 +201,5 @@ }); {% block javascripts %}{% endblock %} -{% block chatbot %}{% endblock %}