https://gitlab.synchro.net/main/sbbs/-/commit/1ab2956baad6304f3510f091 Modified Files:scfglib2.c scfgsave.c userdat.c userdat.h websrvr.c
src/sbbs3/ftpsrvr.c src/sbbs3/scfg/scfgxfr1.c src/sbbs3/scfgdefs.h
Log Message:(e.g. "/files/"), all HTTP or HTTPS requests to the Synchronet Web Server with request paths beginning with this prefix will be interpreted as filebase access
Add direct filebase access from the web server (optional)
By setting SCFG->File Options->Web File Virtual Path Prefix to something
Currently, only requests to *files* (for download) are supported (no indexgeneration, file information, etc. and definitely no upload support). Full access control (using HTTP auth, not cookies) is used for libraries and directories with controlled access. Credits are deducted and awarded and uploaders are notified of downloads, as one would expect. Requests to any dynamic-web-content files (e.g. .SSJS, .XJS, etc.) will be treated as static file download requests (no script will be executed).
I'm reusing the same virtual path parsing logic from the FTP server (moved tothe userdat lib), so the virtual path to a file for download would be, for example, http://yourdomain/files/lib/dir-code/filename.ext
The main motivation for this feature is: FTP-links in email and web pages arejust not useful to many users these days and I don't think that sysops should have to rely on a SSJS web UI (e.g. ecWebv4, cool as it is), to provide web-access to the filebases. Using this feature, you can share simpler/shorter web links to your files that will be more enduring.
---[vert/cvs/bbs].synchro.net
� Synchronet � Vertrauen � Home of Synchronet �
Sysop: | Kurt Hamm |
---|---|
Location: | Columbia, SC |
Users: | 5 |
Nodes: | 20 (0 / 20) |
Uptime: | 227:28:37 |
Calls: | 2,417 |
Calls today: | 1 |
Files: | 64 |
Messages: | 797,845 |