Skip to content

Commit

Permalink
Force to use https in dev mode
Browse files Browse the repository at this point in the history
The new version waitress didn't do that correctly

Requires: camptocamp/c2cwsgiutils#2523
  • Loading branch information
sbrunner committed Nov 12, 2024
1 parent 4763462 commit ad07233
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_desktop_alt(url: str) -> None:
assert response.status_code == 200, response.text

assert re.search(
r'<script src="https?://front/static-ngeo-dist/desktop-.*\.js" crossorigin="anonymous"></script>',
r'<script src="https://front/static-ngeo-dist/desktop-.*\.js" crossorigin="anonymous"></script>',
response.text,
), response.text
assert re.search(r'<html lang="{{"{{mainCtrl.lang}}"}}" ', response.text), response.text
Expand Down

0 comments on commit ad07233

Please sign in to comment.