Thank you, Dan and Sebastian!! Thanks for the link to the code line, that
helped me to understand that my nginx config file was missing this
directive in the server {} container for my virtual host:
proxy_set_header X-Forwarded-Proto $scheme;
Boy that makes things *easy*!!! :D
(Dan, clearly your message indicated that this was necessary, but my
misunderstanding of your message was that nginx does this by way of normal
behavior, not that the declaration was needed to be explicitly defined in
my config.)
On Thu, Aug 11, 2016 at 10:09 AM, sri <[email protected]> wrote:
> 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/24ce94ca44abfb38c3bf1267f2df9d
> 1c1d611d44/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.
>
--
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.