From 10e63b3d0371b5c0831f06d4ed3ec5059ada399a Mon Sep 17 00:00:00 2001 From: Pieterjan De Potter Date: Mon, 11 Mar 2024 11:20:11 +0100 Subject: [PATCH] Force usage of https on non-dev environments --- config/packages/dev/services.yaml | 3 +++ config/services.yaml | 2 ++ 2 files changed, 5 insertions(+) create mode 100644 config/packages/dev/services.yaml diff --git a/config/packages/dev/services.yaml b/config/packages/dev/services.yaml new file mode 100644 index 00000000..f822b516 --- /dev/null +++ b/config/packages/dev/services.yaml @@ -0,0 +1,3 @@ +parameters: + router.request_context.scheme: 'http' + asset.request_context.secure: false \ No newline at end of file diff --git a/config/services.yaml b/config/services.yaml index c1e2582f..f324518b 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -14,6 +14,8 @@ parameters: app.page_image_directory: '%env(PAGE_IMAGE_PATH)%' app.image_directory: '%env(IMAGE_PATH)%' app.morph: '%env(MORPH_HOST)%' + router.request_context.scheme: 'https' + asset.request_context.secure: true services: # default configuration for services in *this* file