Commit Graph

20 Commits

Author SHA1 Message Date
788e75c4c1
Add users system, required for uploading new pastes 2023-04-30 12:06:09 +02:00
Daan Sprenkels
c4ff0ab1b7 Add request_duration_seconds metric 2021-05-16 20:24:00 +02:00
Daan Sprenkels
a26894dac8 Refactor metric collection 2021-05-16 20:21:44 +02:00
Daan Sprenkels
1c09bb0a71 Fix incorrect router setup 2020-07-27 14:22:43 +02:00
Daan Sprenkels
5a39d6a37c Add request logging to panic recovery
Fixes #61
2020-07-06 17:15:56 +02:00
Daan Sprenkels
d37222f82a Fix error handling in renderStatic
Fixes #60
2020-07-06 17:07:14 +02:00
Daan Sprenkels
0b2297a2e8 Add a test for issue #60 2020-05-30 17:49:44 +02:00
Daan Sprenkels
c57e719e15 Add a test for issue #45; NFC
Fixes #45
2020-04-27 13:00:46 +02:00
Daan Sprenkels
245dd64f82 Directly serve files instead of redirect
Fixes #28
2019-12-19 23:17:37 +01:00
Daan Sprenkels
ffeb9a3362 Rename --host => --root-url 2019-12-17 15:43:32 +05:30
Daan Sprenkels
c46a26f8a2 web: Implement drag-and-drop upload 2019-12-16 16:21:41 +05:30
Daan Sprenkels
f32e47b4c8 Add deprecation warning for omitting --host 2019-12-15 17:08:32 +05:30
Daan Sprenkels
0bffde1dc1 Implement --host flag to override {{.Host}}
Fixes #15
2019-12-15 16:48:50 +05:30
Daan Sprenkels
728b5d9d4b Add extension to FileUpload request url
Fixes #27
2019-12-15 12:21:54 +05:30
Daan Sprenkels
40a32fa535 Respond to HEAD requests
Fixes #21
2019-12-15 11:44:27 +05:30
Daan Sprenkels
cf956501ac metrics: Add http_requests metric 2019-12-08 21:56:02 +01:00
Daan Sprenkels
0cfad96b68 Refactor database login into a separate module 2019-12-06 18:03:56 +01:00
Daan Sprenkels
66eb0bf97a Add support for file uploads 2019-11-10 19:03:57 +01:00
b738116f8a Flags for listen and metrics address; fix in newRedirectPasteSuccess.txt.tmpl
Fixes #9
2019-11-09 21:43:58 +01:00
1b3ba9443a Move several packages to root package 2019-11-09 15:50:12 +01:00