• exec/webfileindex.ssjs

    From Rob Swindell@VERT to Git commit to main/sbbs/master on Thursday, March 31, 2022 19:05:38
    https://gitlab.synchro.net/main/sbbs/-/commit/be0a37c8769539c78534414e
    Added Files:
    exec/webfileindex.ssjs
    Log Message:
    My initial/simple/ugly dynamic web file index generator

    Configured in sbbs.ini [web] by setting:

    FileVpathPrefix = /files/
    FileIndexScript = webfileindex.ssjs

    And optionally (if you want your vhosts to get filebase access):

    FileVPathForVHosts = true

    You can use an .xjs file if you prefer.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sunday, April 03, 2022 19:19:54
    https://gitlab.synchro.net/main/sbbs/-/commit/61e6f5d3c6c6a560ef52eac1
    Modified Files:
    exec/webfileindex.ssjs
    Log Message:
    Change sorting_description from const to var

    Since this script can be reloaded in the same scope.

    Fixes issue #387.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Friday, June 24, 2022 12:49:03
    https://gitlab.synchro.net/main/sbbs/-/commit/187f8f8aaed7a52fdcf2f3ec
    Modified Files:
    exec/webfileindex.ssjs
    Log Message:
    Respond with redir when directory requests are received without trailing slash

    HTTP Directory requests without a trailing slash would "work" (the directory listing would be sent), but the links to files, since they're relative to the current request location, would be incorrect (missing the directory's virtual subdir). So send a 301 response if a client requets a directory without a trailing slash.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Saturday, June 25, 2022 17:19:55
    https://gitlab.synchro.net/main/sbbs/-/commit/2bb0ca81c53691275810605f
    Modified Files:
    exec/webfileindex.ssjs
    Log Message:
    Do the redir thing for all requests not ending in /, not just dirs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net