>
> The X-Forwarded-Proto header is set by the server which is proxying to
> Mojo. That server knows it is receiving https and proxying it, but those
> requests aren't using the ws protocol yet so it doesn't know it should use
> wss. There would either need to be logic that looks for a X-Forwarded-Proto
> of https and converts any ws: to wss:, or just hardcode the wss: in your
> template/set the scheme manually (what I have done so far). For example
> url_for(...)->to_abs->scheme('wss).
>
That code exists.
https://github.com/kraih/mojo/blob/24ce94ca44abfb38c3bf1267f2df9d1c1d611d44/lib/Mojolicious/Controller.pm#L319
--
sebastian
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.