1
0
Commit Graph

77 Commits

Author SHA1 Message Date
a78001bf22
Added a chroot option. 2022-02-08 22:48:56 +04:00
4a5f54ee70
Properly form a download URL. 2022-02-08 19:21:44 +04:00
c884fe8225
Let's check if client is curl and return just a link.
And NetworkType() returns a scheme as well now.
2022-02-08 19:02:37 +04:00
0e46641599
Fixed link to a font. 2022-02-08 19:00:55 +04:00
7b5b9a7ce8
Changed site description. 2022-02-08 18:59:23 +04:00
e2b2758b34
Removed dir arg from compileTemplates(). 2022-02-08 18:26:20 +04:00
4b8cc9060e
Removed WebDir option. 2022-02-08 18:25:54 +04:00
381a0dcc98
Jade can work with embed FS, so we do that. 2022-02-08 17:46:44 +04:00
967e8e6878
Added font Roboto Condensed. 2022-02-08 17:45:45 +04:00
61dae0e57f
Moved web dir inside internal/handlers for go:embed. 2022-02-08 17:44:49 +04:00
e529bfa353
Amber is replaced with Jade. 2022-02-08 04:23:38 +04:00
bf0595453c
Creating a sparse file, because on file create an inotify will produce an event and dir size will be recalculated, so it can get an actual size. 2022-02-08 02:12:01 +04:00
9a4461ac4e
Now instead of computing dir size on every request use a variable that is updated using inotify. 2022-02-08 00:25:50 +04:00
d9adf74608
Handle NotFound error in Download(). 2022-02-07 23:09:18 +04:00
8fdf0b61e2
Added NotFound handler.
Removed commented out content-type header.
2022-02-07 22:51:47 +04:00
8a4104c3d5
Remove all debugging calls. 2022-02-07 22:27:34 +04:00
be37f74317
Storage size computing moved off to utils.DirectorySize(). 2022-02-07 22:18:22 +04:00
7ac1c2ccb9
Removed excessive vars from SplitNetworkAddress(). 2022-02-07 22:08:02 +04:00
17152581a9
Added ToStdout, Clean, and CleanError to Log. 2022-02-07 21:24:25 +04:00
96512808a8
All log files now could be in different locations. 2022-02-07 20:34:04 +04:00
cafb305b76
Logging using a handmade one. 2022-02-07 19:42:09 +04:00
64ab7e5d40
Add defer Close() for configFile. A more clear error message for yaml decoder. And a comment for SplitNetworkAddress method. 2022-02-07 18:21:40 +04:00
c3e81c61d7
Add log directory into config file. 2022-02-07 18:17:12 +04:00
264e403882
Handlers. 2022-02-07 04:49:21 +04:00
c5e9b48de7
Changed config struct. 2022-02-07 04:47:26 +04:00
10a64306a3
Snake case to camel case. 2022-02-06 03:01:16 +04:00
d4852ee6dd
Initial commit. 2022-02-06 02:22:23 +04:00