TiddlyServer upgraded to TiddlyWiki 5.1.21

184 views
Skip to first unread message

Arlen Beiler

unread,
Oct 3, 2019, 10:56:46 PM10/3/19
to TiddlyWiki
Hi everyone,

I've upgraded TiddlyServer to TW5.1.21. 

This release also adds /assets/tiddlywiki which serves the tiddlywiki folder the server is using to mount data folders. It's mainly for convenience, but it has some really great use-cases such as loading plugins as external javascript instead of in the HTML file, which of course get cached across your entire site, not just for that page. 


Enjoy
Arlen

TonyM

unread,
Oct 4, 2019, 12:06:58 AM10/4/19
to TiddlyWiki
Arlen,

Thanks for maintaining and enhancing this wonderful solution. I notice the settings.json seems to have changed a lot. I copied my tree into the new settings.json 

But these settings were in my old settings.json
    "types":{
       
"htmlfile": ["htm", "html", "hta", "png", "tw"]
   
},
   
"username": "",
   
"password": "",
   
"host": "192.168.1.81",
   
"port": 80,
   
"backupDirectory": "C:\\Data\\TW5\\backups",
   
"etagWindow": 10,
   
"etag": "",
 
"_disableLocalHost": "true",
   
"useTW5path" : false

Have these being deprecated?

I believe I will still need
 "etag": "required",
 
"etagWindow": 10,

But the setting the port is Port is  not documented here https://arlen22.github.io/tiddlyserver/docs/serverconfig.html#port-number

And 
    "types":{
       
"htmlfile": ["htm", "html", "hta", "png", "tw"]
   
},

Is desirable because I now have .tw files.

Please let me know!

Thanks
Tony

Adrian Holbrook

unread,
Oct 4, 2019, 9:11:35 AM10/4/19
to TiddlyWiki
Just out of curiosity as I have not been able to get the backup to work on the previous installation I notice that you have "backupDirectory" but in the Settinggs example files oin Version 2.1.3 it had "backupFolder". Is this important?

Adrian

Arlen Beiler

unread,
Oct 4, 2019, 9:37:58 AM10/4/19
to TiddlyWiki
Here is the TypeScript interface for the putsaver property, which is a top-level property (in other words, put it beside the tree property).

So
"putsaver": {
"backupFolder": "",
"etag": "optional",
// etc.
}

export interface ServerConfig_TiddlyServer {
  /** 
   * Backup folder to store backups in. Multiple folder paths can backup to the same folder if desired. 
   */
  backupFolder?: string,
  /** 
   * GZip backup file to save disk space. Good for larger wikis. Turn this off for experimental wikis that you often need to restore from a backup because of a bad line of code (I speak from experience).
   */
  gzipBackups?: boolean,
  /** 
   * Save a backup only if the disk copy is older than this many seconds. If the file on disk is only a few minutes old it can be assumed that very little has changed since the last save. So if this is set to 10 minutes, and your wiki gets saved every 9 minutes, only the first save will trigger a backup. This is a useful option for large wikis that see a lot of daily work but not useful for experimental wikis which might crash at any time and need to be reloaded from the last backup. 
   */
  etagAge?: number,
  /** 
   * Whether to use the etag field -- if not specified then it will check it if presented.
   * This does not affect the backup etagAge option, as the saving mechanism will still 
   * send etags back to the browser, regardless of this option.
   */
  etag?: "required" | "disabled" | "optional"
}

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/0484ce6b-e4d4-43b6-b343-ac28515f1616%40googlegroups.com.

Arlen Beiler

unread,
Oct 4, 2019, 9:40:55 AM10/4/19
to TiddlyWiki
The description on etagAge is not correct. It has nothing to do with backups. I'm not sure why I wrote that, but backups are always saved no matter what. I must have been tired that day!

Arlen Beiler

unread,
Oct 4, 2019, 9:43:26 AM10/4/19
to TiddlyWiki
export interface ServerConfig_TiddlyServer {
  /** 
   * Backup folder to store backups in. Multiple folder paths can backup to the same folder if desired. 
   */
  backupFolder?: string,
  /** 
   * GZip backup file to save disk space. Good for larger wikis. Turn this off for experimental wikis that you often need to restore from a backup because of a bad line of code (I speak from experience).
   */
  gzipBackups?: boolean,
  /** 
   * Reject an etag with a modified time that is different than the file on disk by this many seconds. 
   * Sometimes sync or antivirus sofware will "touch" a file and update the modified time without changing anything.
   * Size difference will still cause the request to be rejected.
   */
  etagAge?: number,
  /** 
   * Whether to use the etag field -- if not specified then it will check it if presented.
   * This does not affect the backup etagAge option, as the saving mechanism will still 
   * send etags back to the browser, regardless of this option.
   */
  etag?: "required" | "disabled" | "optional"
}

Arlen Beiler

unread,
Oct 4, 2019, 9:46:38 AM10/4/19
to TiddlyWiki
Mime types can now be added by specifying them under { "directoryIndex: { mimetypes: { "text/html": ["tw"] } } }

Arlen Beiler

unread,
Oct 4, 2019, 10:44:30 AM10/4/19
to TiddlyWiki
I've add some JSON snippets to https://arlen22.github.io/tiddlyserver/docs/serverconfig.html to hopefully make it more clear what the entire configuration looks like. 

jwd

unread,
Oct 11, 2019, 10:32:16 PM10/11/19
to TiddlyWiki
So maybe I am missing something obvious but when I visit the above link or its home page https://arlen22.github.io/tiddlyserver/ I see no link to the actual current download location.

You might want to include a Download section or a prominent link to https://github.com/Arlen22/TiddlyServer/releases/ in the Getting Started steps.

Similarly with the README at https://github.com/Arlen22/TiddlyServer - where the Tiddlywiki site links. It does not seem apparent to this visitor where one goes to get the goods without finding the link in the original post above.
Reply all
Reply to author
Forward
0 new messages