Is nginx running on the same box as tiddlywiki? If so, you probably don't
need to proxy_pass to ddns.info:8090 but rather to localhost:8090.
Here's my configuration
server {
listen 80;
access_log /var/log/nginx/tiddlywiki.access.log combined;
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;
}
}
As you can see, I'm proxying to localhost on port 8888. My wiki is
available below the path /wiki/ so you'd want to replace that with /tiddly/.
The one nice feature I figured out was how to restrict write access to
logged in users, while allowing read access via the limit_except GET HEAD
block.
Hope that helps,
Matt
On Tuesday, May 17, 2016 at 9:33:07 AM UTC-4, Hans Maulwurf wrote:
>
> Hey,
>
> could someone help me to get TW5 working with nginx under a suburl? I run
> "tiddlywiki testwiki --server 8090 $:/core/save/all text/plain text/html ""
> "" 0.0.0.0"
>
> Then i can access the tw fine with localhost:8090 or my dyndnsxxx:8090.
> But i want to get it at localhost/tiddly. I tried it with nginx-conf:
>
> location / {
> alias /tiddly;
> proxy_pass http://hansarch.ddns.info:8090;
> proxy_max_temp_file_size 0 ;
> proxy_set_header Host $host;
> proxy_set_header X-Real-IP $remote_addr;
> proxy_set_header X-Forwarded-For
> $proxy_add_x_forwarded_for;
> }
>
> But i only get a white page. Any suggestions?
>
> Thanks for ur help,
>
> Hans
>
--
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/4c729037-4627-4a7b-a2fd-57a66e0c46d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.