Daan Sprenkels
|
a766d5d596
|
Update .gitignore; NFC
|
2020-04-05 18:12:16 +02:00 |
|
Daan Sprenkels
|
c28dfd0cb4
|
Merge pull request 'Add rushlink --screenshot.' (#41) from mara/rushlink:master into master
|
2020-03-26 09:37:25 +01:00 |
|
|
732b1fc2a6
|
Add rushlink --screenshot.
|
2020-03-24 17:25:51 +01:00 |
|
|
8403ad2258
|
Make rushlink --delete work with urls that have a file extension.
|
2020-03-24 14:42:54 +01:00 |
|
Daan Sprenkels
|
ad1ce67495
|
Merge pull request 'Add command line tool to submit and delete files and links.' (#39) from mara/rushlink:master into master
|
2020-03-23 17:00:45 +01:00 |
|
|
11ea63e1fc
|
Add command line tool to submit and delete files and links.
Fixes #11.
|
2020-03-23 17:00:24 +01:00 |
|
Daan Sprenkels
|
0a35cb2508
|
Merge branch 'master' of gitea.hashru.nl:dsprenkels/rushlink
|
2020-01-05 00:15:23 +01:00 |
|
Daan Sprenkels
|
de19234108
|
return after serving meta page
|
2020-01-05 00:14:53 +01:00 |
|
|
9a690e2b8b
|
README: restructure to accentuate building/deploying
|
2019-12-28 19:24:59 +01:00 |
|
|
ac2c62f9e6
|
README updated with -root_url and sample systemd unit file
|
2019-12-28 18:47:20 +01:00 |
|
Daan Sprenkels
|
095348d614
|
web: Add an example w/ upload from process output
Fixes #35
|
2019-12-19 23:29:09 +01:00 |
|
Daan Sprenkels
|
245dd64f82
|
Directly serve files instead of redirect
Fixes #28
|
2019-12-19 23:17:37 +01:00 |
|
Daan Sprenkels
|
5e6ce9c2be
|
Replace io.Copy w/ http.ServeContent for download
|
2019-12-19 20:09:55 +04:00 |
|
Daan Sprenkels
|
8dce4e8483
|
web: Indent <pre> with padding-left (no spaces)
Fixes #34
|
2019-12-17 23:11:43 +05:30 |
|
Daan Sprenkels
|
ffeb9a3362
|
Rename --host => --root-url
|
2019-12-17 15:43:32 +05:30 |
|
Daan Sprenkels
|
3d07acb222
|
Show meta page immediately after create
|
2019-12-17 15:33:29 +05:30 |
|
Daan Sprenkels
|
c46a26f8a2
|
web: Implement drag-and-drop upload
|
2019-12-16 16:21:41 +05:30 |
|
Daan Sprenkels
|
087b9920e6
|
[refactor] Add !=nil check in renderCreateSuccess
|
2019-12-16 11:27:09 +05:30 |
|
Daan Sprenkels
|
ca859adab1
|
Redirect to /meta after upload/shorten
|
2019-12-16 10:51:21 +05:30 |
|
Daan Sprenkels
|
d34ac11d5e
|
Update metadata info view
|
2019-12-16 10:19:17 +05:30 |
|
Daan Sprenkels
|
824c6f41e2
|
Enable submit using web interface
|
2019-12-16 09:53:36 +05:30 |
|
Daan Sprenkels
|
f32e47b4c8
|
Add deprecation warning for omitting --host
|
2019-12-15 17:08:32 +05:30 |
|
Daan Sprenkels
|
8cbe984ba4
|
Default {{.Host}} to https://
|
2019-12-15 17:06:48 +05:30 |
|
Daan Sprenkels
|
0bffde1dc1
|
Implement --host flag to override {{.Host}}
Fixes #15
|
2019-12-15 16:48:50 +05:30 |
|
Daan Sprenkels
|
41f4de43ac
|
Return both URLs after upload
Fixes #25
|
2019-12-15 12:42:10 +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
|
ba08aca622
|
db: Refactor paste decoding into new func
|
2019-12-10 12:24:58 +01:00 |
|
Daan Sprenkels
|
76cf92e22d
|
db: Add missing docs to public symbols
|
2019-12-10 12:08:27 +01:00 |
|
Daan Sprenkels
|
62e82d831e
|
db: Migrate FileUpload.ContentTypes to auto-detect
|
2019-12-10 11:59:02 +01:00 |
|
Daan Sprenkels
|
eec5e4def4
|
Detect file types instead of trusting clients
|
2019-12-10 11:16:18 +01:00 |
|
Daan Sprenkels
|
f9c74a83f0
|
Add test for #17
Closes #17.
|
2019-12-08 22:49:42 +01:00 |
|
Daan Sprenkels
|
da5806a6f7
|
metrict: Commit change that was forgotten in cf95650
|
2019-12-08 22:02:30 +01:00 |
|
Daan Sprenkels
|
f1fe160655
|
go mod tidy
|
2019-12-08 21:56:30 +01:00 |
|
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 |
|
|
8b87cd0f8a
|
AcceptParams contains at least one character as argument. Fixes #17
|
2019-11-29 20:50:07 +01:00 |
|
|
0e7b2bc83c
|
Merge branch 'dsprenkels/upload' of dsprenkels/rushlink into master
|
2019-11-29 18:36:34 +01:00 |
|
|
b3357185f4
|
Use https links. Use iota for pasteType and pasteState to preserve type
|
2019-11-29 18:36:27 +01:00 |
|
Daan Sprenkels
|
df86d5836a
|
Implement file deletion
|
2019-11-22 18:41:54 +01:00 |
|
Daan Sprenkels
|
c82a71f7d0
|
Revert "Remove file storage possibility for now (awaits #12)"
This reverts commit 801ac8adbb .
|
2019-11-10 19:08:05 +01:00 |
|
Daan Sprenkels
|
66eb0bf97a
|
Add support for file uploads
|
2019-11-10 19:03:57 +01:00 |
|
|
d0b8a9ab9e
|
Always show the shortened URL; optionally print the deleteToken URL
|
2019-11-09 22:44:02 +01:00 |
|
|
01580bfe2a
|
Return complete URL after shortening, fixes #13
|
2019-11-09 22:33:16 +01:00 |
|
|
e7b71eca69
|
index templates: assume we run on https. README: example nginx config
Fixes #10
|
2019-11-09 22:29:01 +01:00 |
|
|
801ac8adbb
|
Remove file storage possibility for now (awaits #12)
|
2019-11-09 21:46:40 +01:00 |
|
|
b738116f8a
|
Flags for listen and metrics address; fix in newRedirectPasteSuccess.txt.tmpl
Fixes #9
|
2019-11-09 21:43:58 +01:00 |
|
Daan Sprenkels
|
e26e37c97d
|
Merge branch 'structure_rework' of dsprenkels/rushlink into master
|
2019-11-09 17:44:53 +01:00 |
|
|
1b3ba9443a
|
Move several packages to root package
|
2019-11-09 15:50:12 +01:00 |
|
Daan Sprenkels
|
ab0cf15c7b
|
Move flag handling into cmd/
|
2019-11-08 22:17:05 +01:00 |
|