1
0
Commit Graph

95 Commits

Author SHA1 Message Date
31f84721ad
Status 204 prevents a Deleted page rendering. 2023-05-27 19:31:11 +04:00
9a889e746a
Saved 2 lines by deferring each of two calls instead of wrapping in an anonymous func.
Also, removed old cURL handling in an Upload handler.
2023-05-26 22:17:03 +04:00
85f853f48e
Removed /f/ path part in upload handler. 2023-05-26 04:37:07 +04:00
b18338e4e1
Made use of my own httpr router. Replace GetURLParam with httpr.Param. 2023-05-26 04:28:38 +04:00
0677147b63
Removed httprouter dependency from HTTP server. 2023-05-26 04:27:21 +04:00
5101a892de
Made AssetsFS() a standalone func. 2023-05-25 02:31:21 +04:00
fccb81d3a5
Added | separator to the start of all log.Printf() to separate date and action. 2023-05-25 02:24:00 +04:00
3327b30d12
Replaced logging.Logger with std log.Logger. 2023-05-25 02:22:56 +04:00
f0fc34c8e7
Remove func NotFound. 2023-05-25 00:09:30 +04:00
2ef85c6f29
Handle cURL and Wget clients. 2023-05-25 00:08:52 +04:00
b16ec84e86
Added missing return in free space check. 2023-05-24 23:57:02 +04:00
f8351b935d
Moved WriteHeader to nospace.jade. 2023-05-24 23:56:12 +04:00
64132ec18f
Removed missed w.WriteHeader(). 2023-05-24 23:52:33 +04:00
fb9cee2c0a
A new Error() handler used. 2023-05-24 23:50:49 +04:00
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. 2023-05-24 23:50:10 +04:00
a04adf7fa1
Replaced http.Error with 50x errors with web.Error50x(). 2023-05-24 23:20:21 +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
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
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
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
d7191d0fbd
Added /favicon.svg endpoint. 2023-05-21 20:13:15 +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
8925f2ce24
Added robots.txt file and its handler. 2023-05-13 16:00:38 +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
b50c411922
Removed stdout option from config. 2023-04-24 00:43:03 +04:00
eea0e0968a
Added passing of site link to a template. 2022-08-01 01:09:11 +04:00
0a6c8e5d49
Retrieve file's salted hash depending on request's method DELETE or POST. 2022-07-01 03:43:52 +04:00
43a2f6b9d5
Added Delete handler to UploadHandlers. 2022-07-01 03:31:33 +04:00
023fdab96f
Added special case for curl in NotFound handler. 2022-07-01 03:31:08 +04:00
14e0886790
Added Delete log to UploadHandlers. 2022-07-01 03:30:40 +04:00
c8e1cb275f
Added Delete field to Log substruct to Configuration struct. 2022-07-01 03:27:14 +04:00
713bd166af
Removed unused structures. 2022-06-13 21:16:15 +04:00
2cdd27d249
Replaced templates to a generated ones. 2022-06-13 21:07:33 +04:00
09eaecd8ed
Assets and templates are moved to root/web. 2022-05-25 00:28:33 +04:00
d142bbcd7d
Templates are moved off to root/web directory. 2022-05-25 00:27:30 +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
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
4131f7b77e
Renamed dwelling-upload-clear to a more suitable name dwelling-upload-clean. 2022-03-20 18:19:59 +04:00
829000764c
A little var name refactor. 2022-03-07 23:40:41 +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