1
0
Commit Graph

331 Commits

Author SHA1 Message Date
6e9ad9323c
Added error50x template. 2023-05-24 23:20:05 +04:00
06dfcaac8e
Removed excessive wtih word in index.jade. 2023-05-24 23:09:47 +04:00
35468af206
In web/*.jade.go target perform check for changes in templates. 2023-05-24 23:09:16 +04:00
3696e1dfe1
Also, gen-salt demands to be runned under root, so let's check for it and fail if it doesn't. 2023-05-24 22:58:32 +04:00
14ec537d82
And, let's change line wrapping here. 2023-05-24 22:49:36 +04:00
14efad4a4a
Rewrote gen-salt.sh in a right way. 2023-05-24 22:48:28 +04:00
9c5bad04d4
Made a new target to generate templates only when they are missing. Also put go install jade in it. Hence, no need in check in the PKGBUILD. 2023-05-24 22:40:06 +04:00
21d05e7488
Remove *.jade.go as well on clean target in Makefile. 2023-05-24 22:29:40 +04:00
ec2656c719
jade.go is being automatically generated, so no need to keep it. Also removed unneeded flags from go:generate in web.go. 2023-05-24 22:28:36 +04:00
b95052709a
Removed upload.yaml from Makefile and PKGBUILD. Removed run and run-clean targets. 2023-05-24 22:25:19 +04:00
af0492e5a0
Version's week part incremented. 2023-05-24 22:23:05 +04:00
57aea7ef77
Added gen-salt.sh to generate and get a SetCredentialEncrypted= to put in a systemd service. 2023-05-24 22:22:11 +04:00
badeda87ad
No need in gopkg.in/yaml.v3 anymore. 2023-05-24 22:21:08 +04:00
cc1cbeffcd
Removed config.yaml. 2023-05-24 22:20:22 +04:00
332e9a1bb3
Removed Configuration. 2023-05-24 22:20:02 +04:00
931f98d12e
Made use of cmd arguments. 2023-05-24 22:19:41 +04:00
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
ce6d81ad55
Added /f/ to robots.txt. 2023-05-24 02:57:41 +04:00
88ec5e5efe
Added missing io.Writer in a call of web.Deleted. 2023-05-21 22:24:36 +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
7e1b56bbc5
Version's week part was incremented. 2023-05-21 20:53:24 +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
c53dab9e6b
Oops, that site argument isn't needed. 2023-05-21 20:25:26 +04:00
15dd184106
Added deleted page to show if file was successfully deleted. 2023-05-21 20:21:41 +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
ac92fe7d0b
error404.jade update. 2023-05-14 01:26:55 +04:00
8e92ef003e
A little fix of formatting in main.css. 2023-05-14 01:19:45 +04:00
42c6ce1d95
VERSION var here is not used. 2023-05-13 16:42:11 +04:00
1692c24d03
Don't copy LICENSE when install. 2023-05-13 16:35:34 +04:00
8497efd6e1
Changed error message in NotFound handler. 2023-05-13 16:30:13 +04:00
472ebf5891
Made NtFound and RobotsTxt handlers a standalone funcs. 2023-05-13 16:29:32 +04:00
cd29549a85
Version's week part was incremented. 2023-05-13 16:11:38 +04:00
8925f2ce24
Added robots.txt file and its handler. 2023-05-13 16:00:38 +04:00
5f419d7dd8
Fixed url and '' replaced with "" for ${pkgver} to work. 2023-05-02 17:28:21 +04:00
23d7fd882c
Added version var to clean util as well. 2023-04-24 01:05:07 +04:00
2405b129e2
Commented out Tor listen, added Yggdrasil one. 2023-04-24 01:01:35 +04:00
6ce548619a
Removed unused Chroot field from a Configuration struct. 2023-04-24 00:52:01 +04:00
d5aa919a37
Moved http server to internal. 2023-04-24 00:49:53 +04:00
762f8e12c2
Renamed file of a license for ShareTechMono font. 2023-04-24 00:44:39 +04:00
36ecd3cf10
Removed everything related to logToStdout. 2023-04-24 00:43:43 +04:00
b50c411922
Removed stdout option from config. 2023-04-24 00:43:03 +04:00
1e07928b2c
NewLogger() was renamed to New(). Removed toStdout and all of its logic. Use composition for sync.Mutex. 2023-04-24 00:42:24 +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