[TW5] NodeJS Nginx Install w/ Password Protected Directory

79 views
Skip to first unread message

Taylor Wright

unread,
Dec 23, 2016, 3:19:00 PM12/23/16
to TiddlyWiki
I am attempting to install TiddlyWiki on an Nginx server for a subdomain in a password protected directory. The install is located at /path/to/document/root/notes. I am getting errors that read as follows.
  • Sync error while processing 'Draft of 'New Tiddler:XMLHttpRequest error code: 0
  • Sync error while processing '$:/StoryList': XMLHttpRequest error code: 0
Below is my nginx server block for the install. Is there something I am missing that should allow this through? Is there a different way that the password protection should be formatted?

server {
        listen           80;
        server_name      sub.domain.tld;
        location / {
                try_files $uri $uri/ =404;
                auth_basic "Restricted Content";
                auth_basic_user_file /etc/nginx/.htpasswd;
                proxy_pass   http://127.0.0.1:8080;
                proxy_set_header        Host             $host;
                proxy_set_header        X-Real-IP        $remote_addr;
                proxy_set_header        X-Forwarded-For  $proxy_add_x_forwarded_for;
        }
        location /status {
                rewrite ^/status $scheme://$server_name/$uri permanent;
        }
        location /recipes/ {
                rewrite ^/recipes/ $scheme://$server_name/$uri permanent;
        }
        location /bags/ {
                rewrite ^/bags/ $scheme://$server_name/$uri permanent;
        }

Taylor Wright

unread,
Dec 24, 2016, 1:46:11 AM12/24/16
to TiddlyWiki
try_files $uri $uri/ =404

This line was the issue. Commenting it out removed the error.

Reply all
Reply to author
Forward
0 new messages