That's a new one for me. I'm doing a lot of proxying but never thought 
about this scenario. Pretty neat!

On Wednesday, February 5, 2020 at 1:57:13 PM UTC-5, Brice Ruth wrote:
>
> Most excellent.
>
> Fwiw, I was moving from an existing setup using a different skin, that I 
> had exposed via nginx + SSL/TLS + LetsEncrypt ... once I had the basic 
> mosquitto server setup, I was able to proxy the requests for wss://* 
> through nginx w/o going through the additional hassle of securing mosquitto.
>
>     location /mqtt {
>       proxy_pass http://localhost:9001/mqtt;
>       proxy_http_version 1.1;
>       proxy_set_header Upgrade $http_upgrade;
>       proxy_set_header Connection "upgrade";
>       proxy_read_timeout 86400;
>     }
>
> The "path" that you need to proxy through (i.e. "/mqtt) is also not super 
> obvious in any of the docs - I used the dev tools in Chrome to see where it 
> was trying to go and then was able to sort that.
>
> Keep up the great work!
>
> Brice Ruth, FCD
> Software Engineer, Madison WI
>
>
> On Wed, Feb 5, 2020 at 12:28 PM Pat <[email protected] <javascript:>> 
> wrote:
>
>> Thanks for the feedback, you're right it may not be totally clear. I'll 
>> get it updated in the readme
>>
>> On Wednesday, February 5, 2020 at 1:00:31 PM UTC-5, Brice Ruth wrote:
>>>
>>> Hey Pat - first off, fantastic skin. Also, fantastic documentation - 
>>> wowsa. Thank you for putting so much work into this.
>>>
>>> One small note - it isn't clear from all the docs that 
>>> `mqtt_websockets_topic` ought to end with `/loop` -- I used the defaults 
>>> pretty much everywhere, e.g. under [[MQTT]], topic = weather - but this 
>>> through me for a loop (pun intended). The websocket connects and all seems 
>>> honky dorey, but there's no data flowing through. Status in the header is 
>>> yellow with "connected, waiting for data" instead of what you get when it's 
>>> working.
>>>
>>> Anyhoo - thanks so much for all your work on this, absolutely fantastic!!
>>>
>>> Cheers,
>>>
>>> Brice Ruth, FCD
>>> Software Engineer, Madison WI
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "weewx-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/50b2ca69-db41-4f2c-b3e6-4fba7874b1b2%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/50b2ca69-db41-4f2c-b3e6-4fba7874b1b2%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/47bb5d53-70ad-455c-a914-1b5111c5b299%40googlegroups.com.

Reply via email to