Marc Ole Bulling
9c9ea6dbb7
Add end-to-end encryption ( #71 )
...
* Added WASM module for e2e
* Added cmd util to read database
* Changed to go 1.19
* Fixed crash with random string generator
* Fixed typos and tests
* Host service worker on github
2022-08-11 13:37:55 +02:00
Marc Ole Bulling
3ea8e22042
Added comments, fixed tests
2022-07-27 14:08:17 +02:00
Marc Ole Bulling
44260f012b
Use chunked uploads instead of single upload ( #68 )
...
* Change to chunked uploads
* Renamed SHA256 attribute to SHA1
* Breaking: removed /upload endpoint
* Changed timeout to 15 minutes for reading
* Change session key only after 12 hours
* Added API calls for chunk upload, refactoring, added tests
* Add content-type based on file extension for images if empty
2022-07-25 13:21:38 +02:00
Marc Ole Bulling
23feaa241c
Fixed bug where encrypted files could not be downloaded after rerunning setup #64 , output error message if incorrect key is provided during download instead of panic, added note about password entry on setup
2022-07-15 14:59:01 +02:00
Marc Ole Bulling
5bb338f91c
Breaking: Make API output less verbose #63 , fixed hotlink not working with "duplicate" API call, added option to change filename with duplicate API call
2022-07-15 02:29:49 +02:00
Marc Ole Bulling
a10c036c6a
Fixed API call duplication, refactoring, added tests
2022-07-11 19:02:41 +02:00
Marc Ole Bulling
7927e462e0
Added API call to duplicate existing files #66
2022-07-11 16:25:00 +02:00
Marc Ole Bulling
37facb96a2
Fix file permissions for created files #60 , export variable to disable flag parsing
2022-05-22 00:06:25 +02:00
Marc Ole Bulling
8c094a1d48
Don't upload to AWS if file already exists
2022-05-01 11:46:48 +02:00
Marc Ole Bulling
3ced4be96a
Fixed incorrect handling of the option to save images locally
2022-05-01 01:39:17 +02:00
Marc Ole Bulling
057709a794
Added Downloadcount #53 , refactoring
2022-03-25 13:36:15 +01:00
Marc Ole Bulling
a72236ab70
Refactor: Rename datastorage to database
2022-03-16 18:31:55 +01:00
Marc Ole Bulling
6d4d8b332c
Fixed crash when changing to local storage and remote files exist #52 , fixed tests
2022-03-12 07:56:39 +01:00
Marc Ole Bulling
2a51cbaaf8
Added option to have pictures always stored locally for hotlink support
2022-03-11 22:06:09 +01:00
Marc Ole Bulling
f22f95a993
Fixed that full encryption was active when selecting Level 1
2022-03-10 16:27:37 +01:00
Marc Ole Bulling
26f542f8f2
Added tests, minor changes
2022-03-08 18:14:47 +01:00
Marc Ole Bulling
327763a9ad
Added salt to file checksum if encrypted, added tests
2022-03-07 19:15:45 +01:00
Marc Ole Bulling
1c230b3c5e
Added tests and comments
2022-03-01 16:12:04 +01:00
Marc Ole Bulling
43a3a67906
Fixed API to work with unlimited downloads and unlimited time #46
2022-02-26 20:52:53 +01:00
Marc Ole Bulling
da00d3fb02
Fixed removing of files, make deleting source non-blocking
2022-02-26 17:02:27 +01:00
Marc Ole Bulling
58c1e2aa56
Support for file encryption ( #38 )
2022-02-24 14:53:02 +01:00
Marc Ole Bulling
f42faf8f53
Added option to disable upload and time limit during upload #13
2022-02-15 20:20:53 +01:00
Marc Ole Bulling
603508c589
Fixed file not being saved after upload to AWS
2022-01-25 20:36:38 +01:00
Marc Ole Bulling
8bb79e5de0
Fixed file not being saved if using a temp file
2022-01-25 20:31:29 +01:00
Marc Ole Bulling
49f11e94da
Reformatting, added documentation, fixed Setup_test.go
2022-01-25 16:08:28 +01:00
Marc Ole Bulling
7ae36d1a52
Changed modulename to github.com/forceu/gokapi
2022-01-25 13:44:21 +01:00
Marc Ole Bulling
3766c9257f
Replace writable parts of config with database ( #40 )
2022-01-20 23:52:34 +01:00
Marc Ole Bulling
4eb609ece9
Fixed setup if no config directory exists
...
Remove temp files after upload
Set temp directory for docker to data directory by default #37
Increase default memory to 40
Added TMPDIR env
Update doc
2022-01-01 21:01:39 +01:00
Marc Ole Bulling
205cac48ca
Fixed typo that lead to slighly inaccurate max filesize
2021-07-04 09:54:37 +02:00
Marc Ole Bulling
10d17d0807
Added maximum filesize setting throuh env variable #23
2021-07-03 16:51:26 +02:00
Marc Ole Bulling
4ee4bca975
Changed Mutex to RWMutex
2021-06-23 11:58:59 +02:00
Marc Ole Bulling
6cffccb3be
Added logging #18 , set Dockerfile to Go 1.16.5, minor changes
2021-06-16 19:44:27 +02:00
Marc Ole Bulling
e42586fcd6
Fixed AWS upload / download
2021-05-16 23:34:29 +02:00
Marc Ole Bulling
e9dad37710
Refactoring, changed AWS env variable names, AWS config can be loaded from file as well, enhanced unit tests
2021-05-16 18:32:46 +02:00
Marc Ole Bulling
72aba12a15
Reduced write operations for temp files, enhanced tests, minor changes to readme
2021-05-13 17:30:59 +02:00
Marc Ole Bulling
84c6a07635
Fixed reading terminal input on Windows, fixed upload error for Files > 20MB, fixed build tags
2021-05-11 14:22:09 +02:00
Marc Ole Bulling
8f02aeb881
Logout all sessions after changing password, enhanced unit tests
2021-05-10 21:45:31 +02:00
Marc Ole Bulling
3be4ec7096
Added mock function for AWS S3, updated tests
2021-05-10 16:48:35 +02:00
Marc Ole Bulling
884c2d94b5
Added AWS S3 support #14
2021-05-10 14:37:29 +02:00
Marc Ole Bulling
26c6c8e946
Fixed error when uploading new file, updated dropzone, completed API tests, TODO: api doc / api upload
2021-05-07 00:00:34 +02:00
Marc Ole Bulling
c9ad7064fa
Refactoring, early implementation of API
2021-05-06 12:35:07 +02:00
Marc Ole Bulling
733aa55637
Use config mutex for sessions to prevent data race, added note about bug in Go <1.17 regarding data race in html/template
2021-05-05 14:55:03 +02:00
Marc Ole Bulling
3ebcafbb81
Refactoring, using mutex to prevent race conditions for all configuration reads/writes
2021-04-30 15:12:34 +02:00
Marc Ole Bulling
d635d62268
Refactoring, enhancing unit tests
2021-04-30 12:46:36 +02:00
Marc Ole Bulling
f92a0f1776
Prevent race conditions for sessions
2021-04-22 14:52:38 +02:00
Marc Ole Bulling
8d1e45f228
Fixed CleanUp deleting file that was actively downloaded, which then failed the download, fixed write timeout, made webserver unit tests parallel, serve correct content header.
2021-04-21 18:06:23 +02:00
Marc Ole Bulling
aae4138fb6
Refactoring, fixed that GOKAPI_LENGTH_ID was ignored, check for incorrect cli flags, significantly increased test coverage
2021-04-19 22:44:02 +02:00
Marc Ole Bulling
9ff90c40a0
Formatting and resolving golint warnings
2021-04-13 14:48:57 +02:00
Marc Ole Bulling
17d7a49f50
Added header to show download progress
2021-04-13 14:25:45 +02:00
Marc Ole Bulling
2142bc5747
Refactoring to comply with standard go package structure
2021-04-13 12:03:08 +02:00