New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/tiddlywiki: init #60436
nixos/tiddlywiki: init #60436
Conversation
The tests succeed and look reasonable. I don't see any other problems with this (though I don't have merge authority). |
@GrahamcOfBorg test tiddlywiki |
Please add the test to all-tests.nix. |
just added, sorry missed that earlier |
I've never used tiddlywiki before so pardon the my silly question... but how do I save? When I click the save button my browser attempts to download an html file. |
Good question! Short answers is that wiki is saved automatically and save button is just for emergency. TiddlyWiki has started as wiki in a single file that contains all code and wiki pages. Users supposed to open their local html file work with it and then save using save button. It is very inconvinient so different ways to automatically syncronize wiki emerged https://tiddlywiki.com/#GettingStarted TiddlyWiki node server is one of them. It deconstructs single html file into folder of tiddlers and serves them as webapp. This approach is more convinient for web hosting. The save button in a context of node server becomes an emergency backup option. It allows to quickly backup everything into single html file again. |
When I cycled the server my work was gone. I'm not sure the auto save is properly working. |
Good catch! I've made a mistake in the wiki initialization command. I've added test to make sure wiki is persisted between restarts properly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this fell off my radar. Sorry about that. Thanks for pinging me.
I ran this, created a file, saved, restarted the service and it was gone again. I'm probably doing something silly. Simple config:
services.tiddlywiki.enable = true;
services.tiddlywiki.listenOptions.port = 3000;
When I look under /var/lib/tiddlywiki/tiddlers
I see the file I created, but it won't show up in the browser... Any suggestions?
User interface is a bit confusing. New files are open only until page is reloaded. |
Service that runs TiddlyWiki nodejs server
So the trick about |
I understand your concern but I am not sure how to improve the example. Credentials is relative path to dataDir https://tiddlywiki.com/#WebServer%20Parameter%3A%20credentials that is why in test on The credentials parameter is not mandatory and admin can configure auth using either csv file or username/password https://tiddlywiki.com/#WebServer%20Parameter%3A%20username |
@GrahamcOfBorg test tiddlywiki |
Motivation for this change
Service that runs TiddlyWiki nodejs server.
Exposed options to
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)