Look at $:/plugins/tiddlywiki/tiddlyweb/ServerControlPanel You can see here how it is used: https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/tiddlyweb/tiddlywebadaptor.js#L40 $protocol is replaced with document.location.protocol $host is replaced with document.location.host
I think the value you want to set is: $protocol//127.0.0.1:8080 On Wednesday, June 17, 2020 at 3:29:46 AM UTC+2, leeand00 wrote: > > It's not $:/info/url/port is it? > > I grepped the github repo I pulled it from and it says Port portion of URL > of wiki (eg, ''<<example port>>'') in the InfoMechanisms tiddler. > > On Tuesday, 16 June 2020 15:57:23 UTC-4, leeand00 wrote: >> >> I just installed TW 5.1.22 on a machine (the TW5 server) that I have on >> the DMZ behind an SSH gateway. >> >> I have ssh port forwarded from outside and used the local port 8080 to >> tunnel through the SSH gateway to my TW5 server inside. >> >> I also have another PHP web application on there that seems to be working >> fine (it doesn't appear to use much in the way of ajax). >> >> (both of these web applications sit behind nginx, which handles the >> requests) >> >> On the remote machine I'm using to connect, in the /etc/hosts files I've >> added the lines `wiki.somedomain.com 127.0.0.1` and ` >> kanboard.somedomain.com 127.0.0.1`. >> >> I access them from a remote machine in the browser using ` >> http://wiki.somedomain.com:8080/` <http://wiki.somedomain.com:8080/> and >> `http://kanboard.somedomain.com:8080/` >> <http://kanboard.somedomain.com:8080/> >> >> Tiddlywiki does not appear to work correctly, because although the >> initial page loads just fine, any subsequent ajax requests back to the >> server do not include the 8080 and instead they just use :80, and thus I >> can browse the wiki, but I can't make changes. >> >> Is there any way I can filter the text for these requests, or change a >> setting in the tiddlywiki server, so that I can include the local port in >> my requests made via ssh port forwarding? >> >> Thank you, >> Andrew J. Leer >> >> >> -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/6715c16b-ef31-4b3a-8318-7f8df7f04d86o%40googlegroups.com.

