Hi everyone. I’m unsure how to structure my TiddlyWiki setup. Technically everything works fine — I just can’t decide which option or combination to choose.
I’ve analyzed these options:
1 - stand-alone / single-file
2 - Node.js version
3 - MultiWikiServer version
4 - TiddlyHost version
1 - The single-file version was my entry point. Once you get into TW, there’s no going back. But it no longer meets my needs given my new goals.
2 - I’ve tested the Node.js version extensively and really liked the fact that it saves each note as a .tid file, which could make automatic note generation much easier in the future. However, I believe that if I want to use more than one TiddlyWiki, I would need multiple Node.js instances. Am I correct?
I also noticed that I can export a TW to a single HTML file, either directly from the browser or via the terminal using:
tiddlywiki <name> --output <output folder> --build index
I was also able to configure HTTPS/SSL successfully. I’m currently starting it with:
tiddlywiki <note> --password <pass> --listen username=<user> password=<pass> host=0.0.0.0 tls-cert=<pem> tls-key=<key.pem> gzip=yes --verbose
3 - I tested the MultiWikiServer version and I was honestly surprised. It was easy to install and configure. I explored the SQLite database file and liked its structure.
It’s also possible to export a TW to a single file directly from the browser, but I couldn’t find a way to export just one recipe via the command line, using:
npx mws save-archive output
it exports all bags and recipes, but I didn’t find a way to export only a specific recipe.
I also miss some of the Node.js parameters like:
--password <pass> --listen username=<user> password=<pass>
At least I couldn’t find their equivalents in MWS.
I’m currently starting it with:
npx mws listen --listener port=8081 host="0.0.0.0" secure=true key=<key.pem> cert=<pem>
4 - I had high hopes for this option, but mainly due to lack of time and my limited knowledge of Rails, I couldn’t get it working properly. The closest I got was loading the page in the browser, but it shows “502 Bad Gateway” in the middle of it. Is there any step-by-step tutorial available?
Anyway, my main goal is to edit my TWs remotely, accessing them from any device and from anywhere. So I’ll definitely be using my server for that.
For those of you who no longer use the single-file version, which setup are you using and why?