Re: [tw] [tw5] running nodejs serving with path prefix
Hi Jeremy, On Friday, June 13, 2014 3:46:57 PM UTC+2, Jeremy Ruston wrote: I've gone ahead and added support a prefix path to 5.0.13: https://github.com/Jermolene/TiddlyWiki5/commit/eee3a0cf8e5aa047f8596df06e28194409f38b01 Great, this works fine! Thank you! Best, Stefan -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
Re: [tw] [tw5] running nodejs serving with path prefix
Hi Stefan Apologies for the delayed response. It would certainly be possible to extend the core so that the base path could be specified in a configuration tiddler. I don't have much experience of proxies but I'd hoped that they might be able to allow some regex magic for adding and removing the prefix from requests. I assume that's not the case with Apache? I tried appending a path prefix to the routes defined in core/modules/commands/server.js but the syncer still tries to acces the sync api at root level (/). Which files would I have to patch in order to get this working? You can already patch the browser side. Create a tiddler $:/config/tiddlyweb/host with something like: $protocol$//$host$/path/to/wiki/ See https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins%2Ftiddlywiki%2Ftiddlyweb%2Ftiddlywebadaptor.js#L25 Best wishes Jeremy On Tue, Jun 10, 2014 at 8:46 PM, stefan.fruehwi...@gmx.at wrote: Is it possible to run the TW5 nodejs server relative to a specific prefix path? So that, for instance, if I run tiddlywiki instance --server --path=/path/to/wiki the wiki is served at http://localhost/path/to/wiki. I tried appending a path prefix to the routes defined in core/modules/commands/server.js but the syncer still tries to acces the sync api at root level (/). Which files would I have to patch in order to get this working? I need this for routing a wiki through a apache proxy setup. Thanks, Stefan -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout. -- Jeremy Ruston mailto:jeremy.rus...@gmail.com -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
Re: [tw] [tw5] running nodejs serving with path prefix
Hi Jeremy, thank you for these hints! I won't be able to test them until Friday next week but I will post a working configuration here. I too think that it should be possible to do some regex magic but I'm no apache proxy expert either. Setting a prefix path came to mind because I've seen that many CMS and other web frameworks provide settings for these kind of setup. Best Stefan On Friday, June 13, 2014 2:02:26 PM UTC+2, Jeremy Ruston wrote: Hi Stefan Apologies for the delayed response. It would certainly be possible to extend the core so that the base path could be specified in a configuration tiddler. I don't have much experience of proxies but I'd hoped that they might be able to allow some regex magic for adding and removing the prefix from requests. I assume that's not the case with Apache? I tried appending a path prefix to the routes defined in core/modules/commands/server.js but the syncer still tries to acces the sync api at root level (/). Which files would I have to patch in order to get this working? You can already patch the browser side. Create a tiddler $:/config/tiddlyweb/host with something like: $protocol$//$host$/path/to/wiki/ See https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins%2Ftiddlywiki%2Ftiddlyweb%2Ftiddlywebadaptor.js#L25 Best wishes Jeremy On Tue, Jun 10, 2014 at 8:46 PM, stefan.f...@gmx.at javascript: wrote: Is it possible to run the TW5 nodejs server relative to a specific prefix path? So that, for instance, if I run tiddlywiki instance --server --path=/path/to/wiki the wiki is served at http://localhost/path/to/wiki. I tried appending a path prefix to the routes defined in core/modules/commands/server.js but the syncer still tries to acces the sync api at root level (/). Which files would I have to patch in order to get this working? I need this for routing a wiki through a apache proxy setup. Thanks, Stefan -- 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 tiddlywiki+...@googlegroups.com javascript:. To post to this group, send email to tiddl...@googlegroups.com javascript:. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout. -- Jeremy Ruston mailto:jeremy...@gmail.com javascript: -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
Re: [tw] [tw5] running nodejs serving with path prefix
Hi Stefan Setting a prefix path came to mind because I've seen that many CMS and other web frameworks provide settings for these kind of setup. I've gone ahead and added support a prefix path to 5.0.13: https://github.com/Jermolene/TiddlyWiki5/commit/eee3a0cf8e5aa047f8596df06e28194409f38b01 Best wishes Jeremy On Fri, Jun 13, 2014 at 1:42 PM, stefan.fruehwi...@gmx.at wrote: Hi Jeremy, thank you for these hints! I won't be able to test them until Friday next week but I will post a working configuration here. I too think that it should be possible to do some regex magic but I'm no apache proxy expert either. Setting a prefix path came to mind because I've seen that many CMS and other web frameworks provide settings for these kind of setup. Best Stefan On Friday, June 13, 2014 2:02:26 PM UTC+2, Jeremy Ruston wrote: Hi Stefan Apologies for the delayed response. It would certainly be possible to extend the core so that the base path could be specified in a configuration tiddler. I don't have much experience of proxies but I'd hoped that they might be able to allow some regex magic for adding and removing the prefix from requests. I assume that's not the case with Apache? I tried appending a path prefix to the routes defined in core/modules/commands/server.js but the syncer still tries to acces the sync api at root level (/). Which files would I have to patch in order to get this working? You can already patch the browser side. Create a tiddler $:/config/tiddlyweb/host with something like: $protocol$//$host$/path/to/wiki/ See https://github.com/Jermolene/TiddlyWiki5/blob/ master/plugins%2Ftiddlywiki%2Ftiddlyweb%2Ftiddlywebadaptor.js#L25 Best wishes Jeremy On Tue, Jun 10, 2014 at 8:46 PM, stefan.f...@gmx.at wrote: Is it possible to run the TW5 nodejs server relative to a specific prefix path? So that, for instance, if I run tiddlywiki instance --server --path=/path/to/wiki the wiki is served at http://localhost/path/to/wiki. I tried appending a path prefix to the routes defined in core/modules/commands/server.js but the syncer still tries to acces the sync api at root level (/). Which files would I have to patch in order to get this working? I need this for routing a wiki through a apache proxy setup. Thanks, Stefan -- 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 tiddlywiki+...@googlegroups.com. To post to this group, send email to tiddl...@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout. -- Jeremy Ruston mailto:jeremy...@gmail.com -- Jeremy Ruston mailto:jeremy.rus...@gmail.com -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
[tw] [tw5] running nodejs serving with path prefix
Is it possible to run the TW5 nodejs server relative to a specific prefix path? So that, for instance, if I run tiddlywiki instance --server --path=/path/to/wiki the wiki is served at http://localhost/path/to/wiki. I tried appending a path prefix to the routes defined in core/modules/commands/server.js but the syncer still tries to acces the sync api at root level (/). Which files would I have to patch in order to get this working? I need this for routing a wiki through a apache proxy setup. Thanks, Stefan -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.