|
11dfbfbc23
|
Added flags that replace config file.
|
2023-05-24 22:11:28 +04:00 |
|
|
470bbb04ee
|
Get file.log path as join of its name and LOGS_DIRECTORY env var.
|
2023-05-24 22:10:57 +04:00 |
|
|
deed268b4f
|
Get config passed as cmd args instead.
|
2023-05-24 22:09:41 +04:00 |
|
|
33f69eaf44
|
Changed error logging for upload-clean as well.
|
2023-05-24 22:09:04 +04:00 |
|
|
c85c6555e2
|
Log errors to stdout (systemd-journal) instead of a separate file. Also updated error messages. And since journal already puts a date, use only a Llongfile flag to print a place where an error occured.
|
2023-05-24 21:45:46 +04:00 |
|
|
c43c314a78
|
Pass listen address as a -listen argument. Use the new code to parse a parameter.
|
2023-05-24 21:26:48 +04:00 |
|
|
33ec19647b
|
Reworked logging. Store all actions in one file.log.
|
2023-05-21 21:27:44 +04:00 |
|
|
31d2c4fd21
|
Let's, actually, directly assign to uploadDirSize.
|
2023-05-21 21:12:23 +04:00 |
|
|
50ca035a1f
|
Uhm... Don't recall why, but nonetheless, this is why size wasn't being updated when there were no files left.
|
2023-05-21 20:53:03 +04:00 |
|
|
cb1dd51750
|
Let's reorginise endpoints a little.
|
2023-05-21 20:14:01 +04:00 |
|
|
d7191d0fbd
|
Added /favicon.svg endpoint.
|
2023-05-21 20:13:15 +04:00 |
|
|
472ebf5891
|
Made NtFound and RobotsTxt handlers a standalone funcs.
|
2023-05-13 16:29:32 +04:00 |
|
|
8925f2ce24
|
Added robots.txt file and its handler.
|
2023-05-13 16:00:38 +04:00 |
|
|
23d7fd882c
|
Added version var to clean util as well.
|
2023-04-24 01:05:07 +04:00 |
|
|
d5aa919a37
|
Moved http server to internal.
|
2023-04-24 00:49:53 +04:00 |
|
|
36ecd3cf10
|
Removed everything related to logToStdout.
|
2023-04-24 00:43:43 +04:00 |
|
|
17ebe18b8b
|
Store version in a var that is being passed as an arg of a compiler.
|
2023-04-24 00:32:30 +04:00 |
|
|
e09203ae6d
|
Version updated to 23.10.0.
|
2023-03-12 00:15:25 +04:00 |
|
|
4a49bf30a3
|
Version up to 23.8.0. Changed arav.top to arav.su. Fixed templates. Deleted pre-compiled ones.
|
2023-02-23 18:16:06 +04:00 |
|
|
3a106371fe
|
Incremented version.
|
2022-07-01 04:01:43 +04:00 |
|
|
20702fa97e
|
Uhm, no, hash should be passed in POST body.
|
2022-07-01 03:43:00 +04:00 |
|
|
5218e427d5
|
Added POST and DELETE methods handlers for file deletion in main.
|
2022-07-01 03:32:53 +04:00 |
|
|
2cf7e80480
|
Instantiate a logDelete in main.
|
2022-07-01 03:32:12 +04:00 |
|
|
2713464449
|
Incremented version number.
|
2022-06-13 22:34:15 +04:00 |
|
|
27ec17c9b8
|
Updated program version.
|
2022-06-13 20:25:22 +04:00 |
|
|
1c8beb69ce
|
Added SIGHUP handler to reopen logs. Removed closeSingal, and doneSignal moved to the bottom of main().
|
2022-05-25 00:37:33 +04:00 |
|
|
2ffaeacc15
|
Updated version.
|
2022-05-25 00:28:14 +04:00 |
|
|
0125a1f588
|
Moving this project to version model year.week.minor as well.
|
2022-03-31 16:10:56 +04:00 |
|
|
c60b403e00
|
Removed user substituting and chrooting. It must be made within systemd unit file.
|
2022-03-29 18:12:37 +04:00 |
|
|
5037a6103f
|
Chrooting and user substituting are removed. It can be done within systemd unit.
|
2022-03-20 18:28:20 +04:00 |
|
|
4131f7b77e
|
Renamed dwelling-upload-clear to a more suitable name dwelling-upload-clean.
|
2022-03-20 18:19:59 +04:00 |
|
|
f2cd801b05
|
Renamed FSWatcher to InotifyWatcher.
|
2022-03-07 23:12:02 +04:00 |
|
|
03c19bc1c8
|
logClean renamed to logClear. deletedSize and deletedCount are incremented now if there was no error.
|
2022-03-06 22:00:07 +04:00 |
|
|
34d1a0e24b
|
Wrote more detailed error messages.
|
2022-03-06 21:52:50 +04:00 |
|
|
f8dd68d2a2
|
Renamed a nt variable into more clear variant - typ.
|
2022-03-06 21:52:07 +04:00 |
|
|
85b8eb4876
|
Defered unix socket removing instead.
|
2022-02-14 20:21:19 +04:00 |
|
|
7cb312f5b9
|
Remove unix socket file on exit.
|
2022-02-14 19:02:57 +04:00 |
|
|
2e8e97d0a5
|
Refactor vars.
|
2022-02-10 23:17:55 +04:00 |
|
|
00b5b0c7d6
|
Actually, lets keep working instead of closing program if file cannot be deleted.
|
2022-02-10 23:06:24 +04:00 |
|
|
a0a80db606
|
Fixed substraction order. Previously it gave us a negative duration, so files didn't get deleted.
|
2022-02-10 23:04:27 +04:00 |
|
|
287a53532d
|
Renamed dwu, dwuid to u, uid.
|
2022-02-10 22:49:55 +04:00 |
|
|
bb3a64d334
|
Chroot for dwelling-upload-clean.
|
2022-02-08 23:12:53 +04:00 |
|
|
ad336b03e2
|
Fixed a typo in config.
|
2022-02-08 23:08:37 +04:00 |
|
|
a9a82868ca
|
Chrooting.
|
2022-02-08 23:08:03 +04:00 |
|
|
3a1e044b6d
|
Clean up the code a little.
|
2022-02-08 22:48:05 +04:00 |
|
|
94437e3bab
|
Serve embed assets fs instead.
|
2022-02-08 17:46:16 +04:00 |
|
|
29931cca2f
|
Removed .Hours().
Reduced logClean output.
|
2022-02-08 02:35:48 +04:00 |
|
|
ddaf2bb991
|
Add addtional closeSignal chan for program to wait for.
|
2022-02-08 02:05:38 +04:00 |
|
|
e45bb01f49
|
Use inotify fs watcher. Also shorten errors msg for loggers instantiation.
|
2022-02-08 00:26:59 +04:00 |
|
|
de77530962
|
Set NotFound handler in main.
|
2022-02-07 22:52:01 +04:00 |
|