Skip to content

Commit

Permalink
fix: router parameters (base path and url)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: be7ee401df6dc12de4007bd4c00073ce5c35bdd8
  • Loading branch information
matthieucharreire authored and p-bizouard committed Oct 13, 2023
1 parent e8849b0 commit 615181b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## Fixes
- 🔧 Register server host and scheme in router parameters !50

## [1.4.1] - 2023-10-06

## Fixes
Expand Down
3 changes: 3 additions & 0 deletions config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ imports:
# Put parameters here that don't need to change on each machine where the app is deployed
# https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration
parameters:
router.request_context.host: '%env(SERVER_HOST)%'
router.request_context.scheme: '%env(SERVER_SCHEME)%'
router.request_context.base_url: '%env(SERVER_BASE_URL)%'
asset.request_context.base_path: '%router.request_context.base_url%'
asset.request_context.secure: true
lti_keys_folder_path: '%env(LTI_KEYS_BASE_FOLDER_PATH)%'
lti_public_key_path: file://%lti_keys_folder_path%/config/secrets/%env(APP_ENV)%/public.key
Expand Down

0 comments on commit 615181b

Please sign in to comment.