If you can use the nodejs version, I've got a nginx config that can proxy
the site and use auth_basic to limit write requests while allowing read
requests.
location /wiki/ {
limit_except GET HEAD {
auth_basic 'Restricted';
auth_basic_user_file /etc/nginx/auth/tiddlywiki;
}
proxy_pass http://127.0.0.1:8888/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For
$proxy_add_x_forwarded_for;
}
This basically shows up as a standard browser username/password popup. But
it only works with the nodejs version, and doesn't hide the save button,
just 403's the save requests.
On Wednesday, July 27, 2016 at 8:12:40 AM UTC-4, PMario wrote:
>
> Hi Jesper,
>
> If you activate the "ReadOnly" theme. ... RightSidebar: Tools: theme
> button: select "ReadOnly" ... you get a slightly modified UI. ...
> The save button is also there. Just 4 buttons down.
>
> That's not optimal but simple to achieve without any modifications. ....
> But be aware, that the tiddler menue: more dropdown still contains a
> delete button, which works and probably causes an "autosave" ...
>
> So all in all ... as you found out... suboptimal :/
>
> There have been some discussions
> <https://groups.google.com/forum/#!searchin/tiddlywiki/read$20only$20mode>
> in the group, but imo there is no generic solution, which keeps a simple
> editors UI and possibilities, but prevents the user from accidentally
> changing something. .. At least I don't know it :)
>
> -m
>
--
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/dc468f94-b650-4159-9b80-ff47a15de54d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.