From 8042730d8ed774d21e0541915782a26777560e3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Tue, 12 Nov 2024 09:54:53 +0100 Subject: [PATCH] Force to use https in dev mode The new version waitress didn't do that correctly Requires: https://github.com/camptocamp/c2cwsgiutils/pull/2523 --- .../docker-compose.override.sample.yaml | 1 + .../CONST_create_template/tests/test_testapp.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/geoportal/c2cgeoportal_geoportal/scaffolds/create/{{cookiecutter.project}}/docker-compose.override.sample.yaml b/geoportal/c2cgeoportal_geoportal/scaffolds/create/{{cookiecutter.project}}/docker-compose.override.sample.yaml index 52ac887acb..d69e0d8cc1 100644 --- a/geoportal/c2cgeoportal_geoportal/scaffolds/create/{{cookiecutter.project}}/docker-compose.override.sample.yaml +++ b/geoportal/c2cgeoportal_geoportal/scaffolds/create/{{cookiecutter.project}}/docker-compose.override.sample.yaml @@ -22,6 +22,7 @@ services: # - PRINT_URL=http://print:8080/print/ - PYTHONWARNINGS=default::DeprecationWarning - SQLALCHEMY_WARN_20=true + - C2CWSGIUTILS_FORCE_PROTO=https ports: - 5678:5678 # For remote debugging using Visual Studio Code diff --git a/geoportal/c2cgeoportal_geoportal/scaffolds/update/{{cookiecutter.project}}/CONST_create_template/tests/test_testapp.py b/geoportal/c2cgeoportal_geoportal/scaffolds/update/{{cookiecutter.project}}/CONST_create_template/tests/test_testapp.py index 63de60951f..2440797b94 100644 --- a/geoportal/c2cgeoportal_geoportal/scaffolds/update/{{cookiecutter.project}}/CONST_create_template/tests/test_testapp.py +++ b/geoportal/c2cgeoportal_geoportal/scaffolds/update/{{cookiecutter.project}}/CONST_create_template/tests/test_testapp.py @@ -34,7 +34,7 @@ def test_desktop_alt(url: str) -> None: assert response.status_code == 200, response.text assert re.search( - r'', + r'', response.text, ), response.text assert re.search(r'