Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save starsinmypockets/a17d86e9bf10fa62c1c7065b205f8c41 to your computer and use it in GitHub Desktop.
Save starsinmypockets/a17d86e9bf10fa62c1c7065b205f8c41 to your computer and use it in GitHub Desktop.
Setting up Tiddlywiki behind Nginx (c.f. http://www.brool.com/post/setting-up-tiddlywiki-behind-nginx/)
title: $:/config/tiddlyweb/host
$protocol$//$host$/tw/
./node_modules/.bin/tiddlywiki tw --server 9999 $:/core/save/all text/plain text/html username password
server {
# blah blah
location /tw/ {
proxy_pass http://127.0.0.1:9999/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
# blah blah
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment