1
0
Commit Graph

36 Commits

Author SHA1 Message Date
f3685c999e
An octal repr of permissions is supposed to be used here for working correctly. 2022-02-07 21:50:38 +04:00
f92267a288
Added optional writing to stdout. 2022-02-07 21:24:54 +04:00
17152581a9
Added ToStdout, Clean, and CleanError to Log. 2022-02-07 21:24:25 +04:00
c1e565249c
Added stdout, clean, clean_error log options. 2022-02-07 21:23:54 +04:00
2fb9db01b0
Added a flag for logging to stdout that if set overrides configuration.
Substitute to user from config file.
Moved logging to own one.
2022-02-07 21:23:13 +04:00
53bf25364a
Added a flag for logging to stdout that if set overrides configuration. 2022-02-07 21:12:30 +04:00
d024138593
Add Arhlinux's PKGBUILD. 2022-02-07 20:38:34 +04:00
3bdc589118
Run services as a dwupload user. 2022-02-07 20:37:19 +04:00
43c52dd754
Now program must try to run as a user set in a config file.
init loggers from new config options.
2022-02-07 20:36:41 +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
f5ce98c021
Added a space between timestamp and format. 2022-02-07 19:38:20 +04:00
7bd462d1d6
Changed logging. 2022-02-07 19:35:48 +04:00
bde46d93b0
Wrote a simple logger. 2022-02-07 19:35:25 +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
473b23cbb0
Amber templates. 2022-02-07 04:49:10 +04:00
7fd1fe0c21
Add favicon.sbg. 2022-02-07 04:48:54 +04:00
532e786cae
Add main.css. 2022-02-07 04:48:44 +04:00
9955e3cd28
Updated ConvertFileSize(). Added TiB suffix. 2022-02-07 04:48:33 +04:00
db361bb509
Prefix replaced by Suffix. Added NetworkType(). 2022-02-07 04:48:00 +04:00
c5e9b48de7
Changed config struct. 2022-02-07 04:47:26 +04:00
48545f0781
Changed config format. 2022-02-07 04:47:07 +04:00
65ed3ec924
Updated ServeStatic and GET file request handler and path. 2022-02-07 04:46:46 +04:00
d4e7a7fa25
Fixed flags parsing. Added more handlers. 2022-02-06 15:25:27 +04:00
5f9485fe3c
Added ServeStatic() method. GetURLParams now returns parameter itself, and renamed to GetURLParam. 2022-02-06 15:24:37 +04:00
8341fba20f
Utility for my infrastructure. Added MainSite function. 2022-02-06 15:23:32 +04:00
bc83e033a1
Added Amber template engine. 2022-02-06 15:22:37 +04:00
041fcdf2f4
-config option changed to -conf. 2022-02-06 15:22:14 +04:00
9b5ae547cc
Snake case to camel case. Fixed argument parsing. Added a statistics log line to tell how much files gets deleted. 2022-02-06 03:03:01 +04:00
10a64306a3
Snake case to camel case. 2022-02-06 03:01:16 +04:00
71c3eb56b6
Utility function to convert size ib bytes to its corresponding biggest unit. 2022-02-06 03:00:32 +04:00
bf4f41c85e
Added .gitignore, .keep file to preserve bin directory and go.sum file. 2022-02-06 02:28:33 +04:00
8f9f4f0e30
Added use of configuratuin param KeepForHours to decide if file is to be deleted. 2022-02-06 02:26:55 +04:00
d4852ee6dd
Initial commit. 2022-02-06 02:22:23 +04:00