Thought I might save someone else the ridiculous amount of hours I just
spent trying to serve Bob via Nginx.
The use case is putting Bob on my webserver behind an authentication window
for quick access from any device without a port open to an non protected
server. Because I'm doing this through docker the port to the node server
is only available to the nginx instance.
Anyhoo after reading the bob documentation for the ten thousandth time I
saw the word that is repeated throughout the documentation about a thousand
times: WEBSOCKET.
In order to establish and websocket connection to the server and do things
like make new wikis and shut down the server, the site's nginx config (i.e
the one in the directory with default.conf) file must be tweaked like so:
location / {
proxy_pass http://mybob:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
Documentation here <https://www.nginx.com/blog/websocket-nginx/>.
And here
<https://community.openhab.org/t/using-nginx-reverse-proxy-authentication-and-https/14542>
for authentication. Just scroll down a few sections.
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" 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/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/d9c5659b-0f36-483b-9354-a26f113d4f9f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.