1
0
Commit Graph

277 Commits

Author SHA1 Message Date
ac9ca921d3
Removed jade package and updated yaml.v3 to 3.0.1. 2022-06-13 20:25:04 +04:00
c81f57767c
Pre-generated templates. 2022-06-13 20:24:17 +04:00
55c964fa86
Jade's helper library for templates. 2022-06-13 20:02:33 +04:00
dc7652a137
Removed code for old template compiling. Added go:generate commands to generate template functions. 2022-06-13 20:02:12 +04:00
677aaa288a
Unfortunately, Jade cannot extend templates. Instead you must include parts. 2022-06-13 20:00:49 +04:00
79e25a5072
Fixed NGiNX config. 2022-06-13 19:12:21 +04:00
b243c375e0
A more clarified comment for inotifyCount const. 2022-05-25 19:18:57 +04:00
7e689438ae
Added comments for inotify watcher. 2022-05-25 18:51:01 +04:00
024cd7ff5e
Removed creating of log dir, since it is handled by systemd. 2022-05-25 00:53:26 +04:00
b396a1592b
Added logrotate file to un/install in Makefile. 2022-05-25 00:43:08 +04:00
d995c26827
Added logrotate file. 2022-05-25 00:42:47 +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
bf189d050a
Added Reopen() method for Logger. 2022-05-25 00:33:11 +04:00
09eaecd8ed
Assets and templates are moved to root/web. 2022-05-25 00:28:33 +04:00
2ffaeacc15
Updated version. 2022-05-25 00:28:14 +04:00
d142bbcd7d
Templates are moved off to root/web directory. 2022-05-25 00:27:30 +04:00
0125a1f588
Moving this project to version model year.week.minor as well. 2022-03-31 16:10:56 +04:00
ebb16384db
Ah, okay, I looked up ldd output and found that clean service has no dynamic library dependency unlike the service itself. So /usr/lib should be here as well. 2022-03-30 01:45:07 +04:00
0a1ba68b5c
Shit, why I forgot it? No should be working. :) 2022-03-30 01:35:57 +04:00
7212be161d
Okay, seems to be working. No clue why it didn't before. 2022-03-30 01:34:32 +04:00
3f8fbc4e12
Another attempt on restricting executable paths. 2022-03-30 01:32:00 +04:00
14f2cdba24
Removed a period to prevent accidental copying. 2022-03-29 23:38:05 +04:00
226d02e8d0
Oops, for i2p http is used, not https. 2022-03-29 23:16:57 +04:00
8302050136
index.jade updated. Added curl command for i2p. And minor paraphrising. 2022-03-29 23:10:46 +04:00
1d50b80920
This service is new, so in footer should be just 2022. The year it was created. 2022-03-29 23:09:51 +04:00
f74576e3ce
Better error messages. Now you will not loose your uploaded file if I somehow fuck the template up. 2022-03-29 18:58:35 +04:00
b49f863abf
A micro-optimisation. We don't need a name parameter if there is no such file anyway. 2022-03-29 18:41:05 +04:00
6189ddd48d
Added missing ... operator. 2022-03-29 18:15:06 +04:00
1fbdcae68a
Don't print date to stdout. 2022-03-29 18:12:57 +04:00
c60b403e00
Removed user substituting and chrooting. It must be made within systemd unit file. 2022-03-29 18:12:37 +04:00
f7d2618c8c
Moved licenses for fonts off to root. They aren't needed to be in there. And it will save 16 KiB. 2022-03-29 18:02:33 +04:00
dd657cb6b1
Changed unix socket path in a default config. 2022-03-26 17:07:37 +04:00
145a8e7564
Forgot to remove NoExecPaths and ExecPaths for dwelling-upload-clean as well. 2022-03-26 17:03:49 +04:00
ca414f6054
Removed NoExecPaths and ExecPaths since it doesn't work for whatever reason.
Added RuntimeDirectory to store sock file in an appropriate place.
2022-03-20 18:58:14 +04:00
9ec920f3aa
Excluded executables from NoExecPaths. 2022-03-20 18:40:26 +04:00
5037a6103f
Chrooting and user substituting are removed. It can be done within systemd unit. 2022-03-20 18:28:20 +04:00
b2aec04023
Made PKGBUILD the right way. 2022-03-20 18:20:46 +04:00
4131f7b77e
Renamed dwelling-upload-clear to a more suitable name dwelling-upload-clean. 2022-03-20 18:19:59 +04:00
344df2ba08
Set rwx mode to unix socket. 2022-03-07 23:55:00 +04:00
829000764c
A little var name refactor. 2022-03-07 23:40:41 +04:00
f2cd801b05
Renamed FSWatcher to InotifyWatcher. 2022-03-07 23:12:02 +04:00
e32926dacf
A little paraphrasing in config.yaml. 2022-03-06 22:40:39 +04:00
980dce8023
Omitted unused variable. Fixed copy-paste error with using uploaded template instead of nospace. 2022-03-06 22:34:34 +04:00
fe3883de83
Set header Host for proxy. 2022-03-06 22:33:23 +04:00
16df452105
Removed unnecessary middleware for token-based auth from HTTP server. 2022-03-06 22:15:31 +04:00
3eddc5f93e
Some minor paraphrasings. 2022-03-06 22:12:07 +04:00
7e7feed38a
Combined last two rules into one. 2022-03-06 22:10:36 +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