Hi,
I am trying to setup a Bob server on my VPS. I have googled for resources 
but what I could dig up (mainly this example apache configuration 
<https://github.com/OokTech/TW5-Bob/blob/09de6a2569fbdb95b17ca183bc2a9c824bcac3d8/Documentation/ApacheServer.tid>)
 
does not seem to be working, and I'm having a hard time figuring out what's 
wrong.
Any suggestion is highly appreciated -- I don't even know how to debug 
what's going on.

Cheers,
Enrico

*What I'm trying to do*
I would like to access a Bob-powered tiddlywiki as `multiwiki.my.domain`.
Next step: access Bob-managed sub-wikis as `multiwiki.my.domain/subwiki`, 
to get around node's insane RAM usage 
<https://groups.google.com/d/msg/tiddlywiki/e2CHBYZV4GQ/WpSs7SaVBAAJ>.

*Problems*
When I try to access `multiwiki.my.domain`, I get Bob's starting page but 
at the bottom there is a red banner stating "*WARNING: The connection to 
server hasn't been established yet."*
Checking Firefox's console log, the only message present says "Firefox 
can’t establish a connection to the server at wss://multiwiki.my.domain/."

*My setup*

$ git clone --depth=1 https://github.com/OokTech/TW5-Bob.git 
/usr/lib/node_modules/tiddlywiki/plugins/OokTech/Bob
$ cp -r /usr/lib/node_modules/tiddlywiki/plugins/OokTech/Bob/MultiUserWiki 
MultiWiki

*# MultiWiki/settings/settings.json*
{
  "serverName": "multiwiki.my.domain",
  "scripts": {
    "NewWiki": "tiddlywiki #wikiName --init #editionName"
  },
  "wikis": {

  },
  "ws-server": {
    "port": 8086,
    "host": "127.0.0.1",
    "autoIncrementPort": false
  },
  "heartbeat": {
    "interval": 1000
  },
  "wikisPath": "./Wikis",
  "pluginsPath": "./Plugins",
  "themesPath": "./Themes",
  "servingFiles": {}
}

*# apache_confs/multiwiki-ssl.conf*
<IfModule mod_ssl.c>
<VirtualHost *:443>
        ServerName multiwiki.my.domain

        ProxyRequests Off
        ProxyPreserveHost on

        ###### Adding WebSockets ######
        RewriteEngine On
        RewriteCond %{HTTP:Connection} Upgrade [NC]
        RewriteCond %{HTTP:Upgrade} websocket [NC]
        RewriteRule /(.*) ws://127.0.0.1:8086/$1 [P,L]
        ###### Finished WebSockets #######

        Include /etc/letsencrypt/options-ssl-apache.conf
        SSLCertificateFile ...
        SSLCertificateKeyFile ...

        ProxyPass "/"  "http://127.0.0.1:8086/";
        ProxyPassReverse "/"  "http://127.0.0.1:8086/";

        AllowEncodedSlashes On
        SSLEngine On
        SSLProxyEngine On
</VirtualHost>
</IfModule>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/16742790-6115-41e8-9aa6-89b2ee2f923d%40googlegroups.com.

Reply via email to