-
I get this in firefox when running the example code:
I'm using an nginx proxy infront of mojo but web socket should be wss i think |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
This fixed it: |
Beta Was this translation helpful? Give feedback.
-
I've been running into this issue too while running a Mojolicious app behind a Caddy reverse proxy. This proxy sets the header The suggestion of @ralyodio in this ticket pointed me to the final solution. The Mojolicious documentation explains that you have to set I also verified that this setting does in fact ensure that the |
Beta Was this translation helpful? Give feedback.
-
There are several ways to enable reverse proxy mode, including command line switches for all the servers except hypnotoad, the hypnotoad config parameter, and the environment variable MOJO_REVERSE_PROXY=1 (or MOJO_TRUSTED_PROXIES if you want to get into more detail for more specialized cases). See more at https://docs.mojolicious.org/Mojolicious/Guides/Cookbook#Reverse-proxy The situation is similar in mojojs: https://mojojs.org/docs/Cookbook.md#reverse-proxy |
Beta Was this translation helpful? Give feedback.
This fixed it:
$ MOJO_LISTEN=http://*:5000 MOJO_REVERSE_PROXY=1 morbo index.pl