Skip to content

Commit 199fbc8

Browse files
committed
Documented how to force router to use https schema
1 parent 1fde57c commit 199fbc8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

routing/scheme.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,10 @@ to always use ``http``.
9494
to secure an "area" of your website (all URLs under ``/admin``) or when
9595
you want to secure URLs defined in a third party bundle (see
9696
:doc:`/security/force_https` for more details).
97+
98+
.. note::
99+
100+
Inside CLI commands or the messenger workers the router context is not defined
101+
and you may want to force the router to always generate https or http urls.
102+
This can be achieved with specifying ``router.request_context.scheme: 'https'``
103+
in your your parameters. (see :doc:`/console/request_context.rst` for more details).

0 commit comments

Comments
 (0)