Created
July 21, 2017 22:47
-
-
Save brool/166d5cdd0794d283ac8b2b4126a962b5 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/)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title: $:/config/tiddlyweb/host | |
$protocol$//$host$/tw/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./node_modules/.bin/tiddlywiki tw --server 9999 $:/core/save/all text/plain text/html username password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
This line
./node_modules/.bin/tiddlywiki tw --server 9999 $:/core/save/all text/plain text/html username password
Can now be replaced with
./node_modules/.bin/tiddlywiki tw --listen port=9999 username=myUsername password=123goodpassword
as --server is deprecated in favor of --listen with named parameters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Assume your Tiddlywiki installation is in
/yourtw
, hosted onhttp://www.yoursite.com/tw
Internally hosted on port 999
__config_tiddlyweb_host.tid
is in/yourtw/tw/tiddlers/
startup
is in/yourtw
yoursite
is in/etc/nginx/sites-enabled