How to run two or more wikis on Nodejs?

125 views
Skip to first unread message

jin

unread,
Sep 22, 2020, 6:30:54 AM9/22/20
to TiddlyWiki
I have read some threads regarding this and I encountered Bob and Tiddlyserver which can help me run multiple wikis as far as I know. The problem its too overwhelming and I don't know how to create the settings.json file in Tiddlyserver. So what should I do?

Jed Carty

unread,
Sep 22, 2020, 12:50:50 PM9/22/20
to TiddlyWiki

At the bottom there is a list of downloads, pick the one for your os and download it. BobWin.exe for windows, BobOSX.command for osx and BobLinux for Linux.

Put the downloaded file in whatever folder you want. Double click on the downloaded file. It will start without any other configuration.

Darek Bobak

unread,
Sep 22, 2020, 12:58:27 PM9/22/20
to TiddlyWiki
This is my sample cofiguration for three wikis. I hope this will help you. The folder structure is:

TiddlyWiki
       .config
       public_html

The configuration files (tiddlyserver.json, tiddlyserver-2-2.schema.json) are in the .config folder, wiki folders are in public_html.

{
//The JSON5 parser allows comments!
//All relative paths are relative to this file.
//The user directory prefix ~ is allowed.

//remove one of these
// "tree": "../webroot", //this tree is just going to mount a folder as root: ../webroot

"tree": { //this tree is going to mount a group containing folders and another group
"zettelkasten": {
"$element": "folder",
"path": "../public_html/zettel",
},
"research notes": {
"$element": "folder",
"path": "../public_html/rn",
},
"test": {
"$element": "folder",
"path": "../public_html/test",
},
},
"bindInfo": {
// bind to localhost only (you can specify any other ip address in this array, and it will bind to all available addresses)
"port": 8080,
"bindAddress": ["127.0.0.1"]

//bind to 0.0.0.0
// "bindWildcard": true

//workaround for android devices (bind to all available private ip addresses on startup)
// "bindWildcard": false, "bindAddress": ["192.168.0.0/16", "10.0.0.0/8", "172.31.0.0/16"], "filterBindAddress": true,
},
"putsaver": {
//single file wikis will backup to this directory on every save
// "backupFolder": "./backups" // comment out or set to "" to disable backups
},
"$schema": "./tiddlyserver-2-2.schema.json"
}

cheers,
Darek


jin

unread,
Sep 23, 2020, 6:06:01 AM9/23/20
to TiddlyWiki
Thank you for the replies! I downloaded Bob already and I am currently reading what's on it. I'll check out Tiddlyserver soon
Reply all
Reply to author
Forward
0 new messages