This website requires JavaScript.
3f79eb5b08
Added SetCredentialEncrypted= and a comment.
Alexander "Arav" Andreev
2023-05-25 00:14:24 +0400
f0fc34c8e7
Remove func NotFound.
Alexander "Arav" Andreev
2023-05-25 00:09:30 +0400
2ef85c6f29
Handle cURL and Wget clients.
Alexander "Arav" Andreev
2023-05-25 00:08:52 +0400
b16ec84e86
Added missing return in free space check.
Alexander "Arav" Andreev
2023-05-24 23:57:02 +0400
f8351b935d
Moved WriteHeader to nospace.jade.
Alexander "Arav" Andreev
2023-05-24 23:56:12 +0400
64132ec18f
Removed missed w.WriteHeader().
Alexander "Arav" Andreev
2023-05-24 23:52:33 +0400
fb9cee2c0a
A new Error() handler used.
Alexander "Arav" Andreev
2023-05-24 23:50:49 +0400
185bd80750
error50x made into universal error page. Also Error() handler was made that checks for cURL and Wget, and if find, then use built-in plaintext http.Error, and web.errorXXX otherwise.
Alexander "Arav" Andreev
2023-05-24 23:50:10 +0400
a04adf7fa1
Replaced http.Error with 50x errors with web.Error50x().
Alexander "Arav" Andreev
2023-05-24 23:20:21 +0400
6e9ad9323c
Added error50x template.
Alexander "Arav" Andreev
2023-05-24 23:20:05 +0400
06dfcaac8e
Removed excessive wtih word in index.jade.
Alexander "Arav" Andreev
2023-05-24 23:09:47 +0400
35468af206
In web/*.jade.go target perform check for changes in templates.
Alexander "Arav" Andreev
2023-05-24 23:09:16 +0400
3696e1dfe1
Also, gen-salt demands to be runned under root, so let's check for it and fail if it doesn't.
Alexander "Arav" Andreev
2023-05-24 22:58:32 +0400
14ec537d82
And, let's change line wrapping here.
Alexander "Arav" Andreev
2023-05-24 22:49:36 +0400
14efad4a4a
Rewrote gen-salt.sh in a right way.
Alexander "Arav" Andreev
2023-05-24 22:48:28 +0400
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.
Alexander "Arav" Andreev
2023-05-24 22:40:06 +0400
21d05e7488
Remove *.jade.go as well on clean target in Makefile.
Alexander "Arav" Andreev
2023-05-24 22:29:40 +0400
ec2656c719
jade.go is being automatically generated, so no need to keep it. Also removed unneeded flags from go:generate in web.go.
Alexander "Arav" Andreev
2023-05-24 22:28:36 +0400
b95052709a
Removed upload.yaml from Makefile and PKGBUILD. Removed run and run-clean targets.
Alexander "Arav" Andreev
2023-05-24 22:25:19 +0400
af0492e5a0
Version's week part incremented.
Alexander "Arav" Andreev
2023-05-24 22:23:05 +0400
57aea7ef77
Added gen-salt.sh to generate and get a SetCredentialEncrypted= to put in a systemd service.
Alexander "Arav" Andreev
2023-05-24 22:22:11 +0400
badeda87ad
No need in gopkg.in/yaml.v3 anymore.
Alexander "Arav" Andreev
2023-05-24 22:21:08 +0400
cc1cbeffcd
Removed config.yaml.
Alexander "Arav" Andreev
2023-05-24 22:20:22 +0400
332e9a1bb3
Removed Configuration.
Alexander "Arav" Andreev
2023-05-24 22:20:02 +0400
931f98d12e
Made use of cmd arguments.
Alexander "Arav" Andreev
2023-05-24 22:19:41 +0400
11dfbfbc23
Added flags that replace config file.
Alexander "Arav" Andreev
2023-05-24 22:11:28 +0400
470bbb04ee
Get file.log path as join of its name and LOGS_DIRECTORY env var.
Alexander "Arav" Andreev
2023-05-24 22:10:57 +0400
deed268b4f
Get config passed as cmd args instead.
Alexander "Arav" Andreev
2023-05-24 22:09:41 +0400
33f69eaf44
Changed error logging for upload-clean as well.
Alexander "Arav" Andreev
2023-05-24 22:09:04 +0400
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.
Alexander "Arav" Andreev
2023-05-24 21:45:46 +0400
c43c314a78
Pass listen address as a -listen argument. Use the new code to parse a parameter.
Alexander "Arav" Andreev
2023-05-24 21:26:48 +0400
ce6d81ad55
Added /f/ to robots.txt.
Alexander "Arav" Andreev
2023-05-24 02:57:41 +0400
88ec5e5efe
Added missing io.Writer in a call of web.Deleted.
v23.20.0
Alexander "Arav" Andreev
2023-05-21 22:24:36 +0400
33ec19647b
Reworked logging. Store all actions in one file.log.
Alexander "Arav" Andreev
2023-05-21 21:27:44 +0400
31d2c4fd21
Let's, actually, directly assign to uploadDirSize.
Alexander "Arav" Andreev
2023-05-21 21:12:23 +0400
7e1b56bbc5
Version's week part was incremented.
Alexander "Arav" Andreev
2023-05-21 20:53:24 +0400
50ca035a1f
Uhm... Don't recall why, but nonetheless, this is why size wasn't being updated when there were no files left.
Alexander "Arav" Andreev
2023-05-21 20:53:03 +0400
c53dab9e6b
Oops, that site argument isn't needed.
Alexander "Arav" Andreev
2023-05-21 20:25:26 +0400
15dd184106
Added deleted page to show if file was successfully deleted.
Alexander "Arav" Andreev
2023-05-21 20:21:41 +0400
cb1dd51750
Let's reorginise endpoints a little.
Alexander "Arav" Andreev
2023-05-21 20:14:01 +0400
d7191d0fbd
Added /favicon.svg endpoint.
Alexander "Arav" Andreev
2023-05-21 20:13:15 +0400
ac92fe7d0b
error404.jade update.
v23.19.0
Alexander "Arav" Andreev
2023-05-14 01:26:55 +0400
8e92ef003e
A little fix of formatting in main.css.
Alexander "Arav" Andreev
2023-05-14 01:19:45 +0400
42c6ce1d95
VERSION var here is not used.
Alexander "Arav" Andreev
2023-05-13 16:42:11 +0400
1692c24d03
Don't copy LICENSE when install.
Alexander "Arav" Andreev
2023-05-13 16:35:34 +0400
8497efd6e1
Changed error message in NotFound handler.
Alexander "Arav" Andreev
2023-05-13 16:30:13 +0400
472ebf5891
Made NtFound and RobotsTxt handlers a standalone funcs.
Alexander "Arav" Andreev
2023-05-13 16:29:32 +0400
cd29549a85
Version's week part was incremented.
Alexander "Arav" Andreev
2023-05-13 16:11:38 +0400
8925f2ce24
Added robots.txt file and its handler.
Alexander "Arav" Andreev
2023-05-13 16:00:38 +0400
5f419d7dd8
Fixed url and '' replaced with "" for ${pkgver} to work.
v23.17.0
Alexander "Arav" Andreev
2023-05-02 17:28:21 +0400
23d7fd882c
Added version var to clean util as well.
Alexander "Arav" Andreev
2023-04-24 01:05:07 +0400
2405b129e2
Commented out Tor listen, added Yggdrasil one.
Alexander "Arav" Andreev
2023-04-24 01:01:35 +0400
6ce548619a
Removed unused Chroot field from a Configuration struct.
Alexander "Arav" Andreev
2023-04-24 00:52:01 +0400
d5aa919a37
Moved http server to internal.
Alexander "Arav" Andreev
2023-04-24 00:49:53 +0400
762f8e12c2
Renamed file of a license for ShareTechMono font.
Alexander "Arav" Andreev
2023-04-24 00:44:39 +0400
36ecd3cf10
Removed everything related to logToStdout.
Alexander "Arav" Andreev
2023-04-24 00:43:43 +0400
b50c411922
Removed stdout option from config.
Alexander "Arav" Andreev
2023-04-24 00:43:03 +0400
1e07928b2c
NewLogger() was renamed to New(). Removed toStdout and all of its logic. Use composition for sync.Mutex.
Alexander "Arav" Andreev
2023-04-24 00:42:24 +0400
17ebe18b8b
Store version in a var that is being passed as an arg of a compiler.
Alexander "Arav" Andreev
2023-04-24 00:32:30 +0400
931fade41d
Remove sysusers file when uninstalling.
Alexander "Arav" Andreev
2023-04-24 00:31:45 +0400
43fa61eebf
Pass a version to an executable.
Alexander "Arav" Andreev
2023-04-24 00:31:18 +0400
4ffa2d07fa
Version up. Removed unneeded fields. Specified min ver of Go. Set .tar.gz name from $pkgver. Added export GOPATH to make a different gopath. Pass a version to a Makefile.
Alexander "Arav" Andreev
2023-04-24 00:30:15 +0400
0007c5e21b
Added my full name to a footer.
23.10.0
Alexander "Arav" Andreev
2023-03-12 04:11:24 +0400
5f1c4a46fb
Minimal Go version was changed back to 1.17.
Alexander "Arav" Andreev
2023-03-12 04:11:10 +0400
8c6b5f7d4a
No need to keep bin dir. It will be created at compile time.
Alexander "Arav" Andreev
2023-03-12 00:42:20 +0400
6e3036e4bc
Added jade check and install make target.
Alexander "Arav" Andreev
2023-03-12 00:41:59 +0400
71c6aae91d
More compact and sane template with less wording.
Alexander "Arav" Andreev
2023-03-12 00:36:46 +0400
e09203ae6d
Version updated to 23.10.0.
Alexander "Arav" Andreev
2023-03-12 00:15:25 +0400
c9aa7e3715
Subtract a size of directory's inode itself.
Alexander "Arav" Andreev
2023-03-11 23:45:19 +0400
d3abf5514d
Ignore *.jade.go files. Fixed jade templates. Added go generate to Makefile.
23.8.0
Alexander "Arav" Andreev
2023-02-23 18:28:01 +0400
4a49bf30a3
Version up to 23.8.0. Changed arav.top to arav.su. Fixed templates. Deleted pre-compiled ones.
Alexander "Arav" Andreev
2023-02-23 18:16:06 +0400
29b6d179be
Removed '-git' from package name.
Alexander "Arav" Andreev
2022-08-24 21:44:29 +0400
a9f4e6ffe3
Updated Go version to 1.18.
Alexander "Arav" Andreev
2022-08-24 21:43:49 +0400
f89dfa3830
Reduced go.sum.
Alexander "Arav" Andreev
2022-08-24 21:43:37 +0400
0f329f7ccf
Updated version.
Alexander "Arav" Andreev
2022-08-01 01:09:51 +0400
3834339da7
To MainSite() added an Yggdrassil address.
Alexander "Arav" Andreev
2022-08-01 01:09:43 +0400
eea0e0968a
Added passing of site link to a template.
Alexander "Arav" Andreev
2022-08-01 01:09:11 +0400
d554aa0a50
Added site address to displayed link.
Alexander "Arav" Andreev
2022-08-01 01:08:35 +0400
44cfddd31d
Fixed another typo.
Alexander "Arav" Andreev
2022-07-02 04:05:46 +0400
fc600352d4
Fixed a typo in an index template.
Alexander "Arav" Andreev
2022-07-01 23:16:59 +0400
485472b9f8
Added mention of logging of file deletions in a privacy statements section.
Alexander "Arav" Andreev
2022-07-01 04:19:29 +0400
d48f10baa5
Regenerated compiled index template.
Alexander "Arav" Andreev
2022-07-01 04:15:05 +0400
26974fa5ec
Why did I put .center for every p if I could add it just for a section..? Nevermind.
Alexander "Arav" Andreev
2022-07-01 04:09:23 +0400
870b35cb65
Set text input to 100% width in a @media section.
Alexander "Arav" Andreev
2022-07-01 04:08:12 +0400
8d007faaf5
Added .center class to delete section.
Alexander "Arav" Andreev
2022-07-01 04:05:42 +0400
3a106371fe
Incremented version.
Alexander "Arav" Andreev
2022-07-01 04:01:43 +0400
2c130b950f
Updated manually modified compiled index template.
Alexander "Arav" Andreev
2022-07-01 04:00:28 +0400
e2a9185300
Added a CSS style for input of text type.
Alexander "Arav" Andreev
2022-07-01 03:59:37 +0400
985dfaa8ab
Added a Delete section in an index template.
Alexander "Arav" Andreev
2022-07-01 03:59:01 +0400
0a6c8e5d49
Retrieve file's salted hash depending on request's method DELETE or POST.
Alexander "Arav" Andreev
2022-07-01 03:43:52 +0400
20702fa97e
Uhm, no, hash should be passed in POST body.
Alexander "Arav" Andreev
2022-07-01 03:43:00 +0400
5218e427d5
Added POST and DELETE methods handlers for file deletion in main.
Alexander "Arav" Andreev
2022-07-01 03:32:53 +0400
2cf7e80480
Instantiate a logDelete in main.
Alexander "Arav" Andreev
2022-07-01 03:32:12 +0400
43a2f6b9d5
Added Delete handler to UploadHandlers.
Alexander "Arav" Andreev
2022-07-01 03:31:33 +0400
023fdab96f
Added special case for curl in NotFound handler.
Alexander "Arav" Andreev
2022-07-01 03:31:08 +0400
14e0886790
Added Delete log to UploadHandlers.
Alexander "Arav" Andreev
2022-07-01 03:30:40 +0400
c8e1cb275f
Added Delete field to Log substruct to Configuration struct.
Alexander "Arav" Andreev
2022-07-01 03:27:14 +0400
cd9e4d2b09
Added delete log path to config file.
Alexander "Arav" Andreev
2022-07-01 03:26:48 +0400
351f5dda4b
Added DELETE method handler setter for HTTP server.
Alexander "Arav" Andreev
2022-07-01 03:26:15 +0400
69ffa45f2d
Fixed path in logrotate config.
Alexander "Arav" Andreev
2022-06-30 00:22:59 +0400