Commit Graph

36 Commits

Author SHA1 Message Date
Marc Ole Bulling
0ccca6cf19 Refactoring, table now searchable when using E2E encryption #99 2023-04-14 15:35:26 +02:00
Marc Ole Bulling
a352cf5656 Fixed tests 2023-04-03 02:19:13 +02:00
Marc Ole Bulling
5bb3b29bc6 Additionally use http.MaxBytesReader for enforcing maximum file size 2023-04-01 23:04:19 +02:00
Marc Ole Bulling
dd16c9c8d7 Added tests 2023-04-01 13:26:24 +02:00
Marc Ole Bulling
a97979a899 Replaced go generate commands with native go code 2023-03-31 13:56:25 +02:00
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
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
21063956b1 Added tests 2022-07-16 16:37:52 +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
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
43a3a67906 Fixed API to work with unlimited downloads and unlimited time #46 2022-02-26 20:52:53 +01:00
Marc Ole Bulling
ac18cde0a8 Fixed test 2022-02-26 17:10:33 +01:00
Marc Ole Bulling
58c1e2aa56 Support for file encryption (#38) 2022-02-24 14:53:02 +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
3595a18dbd Replace CLI/env based setup with web UI setup, add OAuth2 (#33)
* Initial commit websetup

* Added writing cloudstorage credentials

* Clean up old configuration generation

* Added Oauth2 OpenID Connect support

* Bugfixes and fixed tests

* Refactoring

* Refactoring, added first tests

* Added documentation

* Refactoring, updated docs

* Added tests

* Added option to reshow setup for reconfiguring Gokapi instance

* Added docs and tests
2021-12-31 01:40:10 +01:00
Marc Ole Bulling
1b300a6691 Automated formatting for go1.17 2021-12-12 20:06:33 +01:00
Marc Ole Bulling
8e10f3710c Added header-based authentication #30 2021-12-12 20:02:07 +01:00
Marc Ole Bulling
cbbbef41c5 Fixed Gokapi not parsing parameters when uploading through API #31 2021-12-10 18:56:54 +01:00
Marc Ole Bulling
724489d2a4 Minor changes, added tests 2021-12-02 16:05:21 +01: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
8f02aeb881 Logout all sessions after changing password, enhanced unit tests 2021-05-10 21:45:31 +02:00
Marc Ole Bulling
1ff8cb2913 Fixed build 2021-05-10 16:59:07 +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
c8a019e22a Fixed lint issues, set Go version to 1.16.4 2021-05-07 17:15:12 +02:00
Marc Ole Bulling
91ca09ac03 Finished API and API documentation 2021-05-07 16:07:48 +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
b40702f10b Working API except upload and documentation 2021-05-06 21:55:30 +02:00
Marc Ole Bulling
c9ad7064fa Refactoring, early implementation of API 2021-05-06 12:35:07 +02:00