Commit Graph

72 Commits

Author SHA1 Message Date
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 a8cbf2b25c Added timout for AWS if endpoint is invalid #72 2022-08-01 14:29:41 +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 093a4bb393 Fixed tests 2022-05-01 12:00:38 +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 7f9037ff1f Updated to Go 1.18, removed debug log, added Go Version to --version output 2022-03-16 10:56:46 +01:00
Marc Ole Bulling 68dd846f14 Fixed noaws version 2022-03-12 12:37:56 +01:00
Marc Ole Bulling 93c4c89053 Added test button for AWS config in setup 2022-03-12 12:24:51 +01:00
Marc Ole Bulling d9845cfc8d Fixed tests 2022-03-12 08:54:06 +01:00
Marc Ole Bulling c3fcd6981c Added warning if CORS settings are not set encryption enabled 2022-03-12 08:46:23 +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 169e1afc01 Set new version, added tests 2022-03-08 15:36:13 +01:00
Marc Ole Bulling eedabbd8f7 Added tests and comments 2022-03-08 13:17:39 +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 0b2a3836b0 Fixed test 2022-02-26 17:06:58 +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 a2daccd972 Filestorage Test now checks if the file was actually stored 2022-01-25 20:48:10 +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 1b300a6691 Automated formatting for go1.17 2021-12-12 20:06:33 +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 4172caad49 Fixed tests 2021-07-03 17:33:56 +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 a7888896f0 Added test tag requirement for unit tests, added minor tests 2021-06-24 13:34:53 +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 afdcda34ba Fixed AWS test 2021-05-17 11:40:09 +02:00
Marc Ole Bulling e6227a95be Fixed AWS tests, refactoring 2021-05-17 11:04:39 +02:00
Marc Ole Bulling e42586fcd6 Fixed AWS upload / download 2021-05-16 23:34:29 +02:00
Marc Ole Bulling 80c2a70030 Added documentation, modified AWS config example 2021-05-16 21:53:13 +02:00