Commit Graph

12 Commits

Author SHA1 Message Date
1c632dcf80
Okay, I fixed issue with special characters in file's names passed to proxy by serving files by NGiNX. So now I add a /files prefix to a full path. So previous commit is partly reverted. :) And need in file-type package is eliminated. 2021-02-17 03:05:50 +04:00
f728f4de4f
Removed adding base_url since it is perfectly handled by browsers. And it reduces size of a page. 2021-02-17 02:05:54 +04:00
8e36ac8439
Forgot to take condition in braces that resulted in returning octet-stream MIME. 2021-02-16 23:57:37 +04:00
714b0821fb
Moved all code for file type negotiation to fileType function. Removed handling of static routes in main route. Moved comparing function out of getDirectoryList as a standalone function. And renamed sizeUnits to SIZE_UNITS, it's a global constant after all. :) 2021-02-16 02:16:03 +04:00
2d6f74e692
Have deleted commented out static files handling. 2021-02-16 01:43:52 +04:00
e7c00b3c8b
Fast fix. Forgot that convertSize returns array of size and unit. 2021-02-12 22:59:02 +04:00
37511381ec
Moved incrementation of total_files_size to if's file branch. So it won't add size of directories (4KiB each). 2021-02-12 22:51:48 +04:00
bd9964d300
Added showing stats on how many files and directories in a current directory, and a total size of files in it. 2021-02-12 22:36:01 +04:00
9000d3b2f7
Updated links. Added modifying links' hostnames based on host of visited site. 2021-02-11 02:57:18 +04:00
60ca5a1463
Added support for a X-Client-Timezone header to convert dates to client's local format gotten from IP using GeoIP. 2021-02-10 03:24:14 +04:00
8b3e93d5e0
Changed ctime to mtime. And turned off static routes. They are handled by nginx now. 2021-02-10 01:56:53 +04:00
23861292d1
Initial commit. 2021-02-10 01:01:50 +04:00