81 Commits

Author SHA1 Message Date
Marc Ole Bulling 689f643f35 Dynamically show secured endpoints during setup, change version number 2022-08-17 13:42:14 +02:00
Marc Ole Bulling 8da7fe4fcb Changed version name 2022-08-11 14:01:47 +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 e824a94f81 Fixed dropzone.js not uploading chunks if filesize = 0 2022-07-28 13:54:21 +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 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 dfd13acf39 Fixed content-type for incorrect-hotlink-picture #56 2022-06-07 20:07:47 +02:00
Marc Ole Bulling 882ddd4731 Added hotlinks for non-image files #62 2022-06-07 18:57:13 +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 989076510c Formatting 2022-03-25 13:37:16 +01:00
Marc Ole Bulling 057709a794 Added Downloadcount #53, refactoring 2022-03-25 13:36:15 +01:00
Marc Ole Bulling a2cf7f2219 Fixed regex for html filtering 2022-03-16 19:08:28 +01:00
Marc Ole Bulling b5bdc5ada8 Added regex to prevent creating a text file if an image was pasted with HTML info 2022-03-16 18:57:36 +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
Raif Coonjah 39075f7e38 UI Design Improvements (#51)
* Design improvement
* Beautify code.
*  Made dropzone lighter and added hover effect.
* Fix/removed the white border.
* Made card-title text bold (900).
* Add a 2px border to make card standout
2022-03-10 16:06:42 +01:00
Marc Ole Bulling bfaf95f9ef Host serviceworker on same domain if using https #49 2022-03-10 14:31:36 +01:00
Marc Ole Bulling 83e4e4a39c Fixed test, minor UI changes 2022-03-08 18:49:04 +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 1c230b3c5e Added tests and comments 2022-03-01 16:12:04 +01:00
Marc Ole Bulling 81f6125815 Added tests 2022-02-28 22:10:09 +01:00
Marc Ole Bulling 8b19d30beb Close webserver gracefully on Gokapi shutdown, added tests 2022-02-28 14:47:28 +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 3cbf388b5f Remove password when unticking checkbox, addded feature to paste text #45 2022-02-26 16:56:19 +01:00
Marc Ole Bulling 8f84b89402 Disable selection of binding to localhost in Docker image, added tests 2022-02-26 15:53:39 +01:00
Marc Ole Bulling 58c1e2aa56 Support for file encryption (#38) 2022-02-24 14:53:02 +01:00
Marc Ole Bulling 1b92f5f3fc Fixed files with unlimited attribute not showing 2022-02-23 23:45:09 +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 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 7a233b388f Refactoring, added tests, minor changes 2022-01-05 10:54:15 +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 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 0bd9bd1a8d Changed /api endpoint to /apiKeys in order to avoid confusion with /api/ 2021-12-02 16:30:57 +01:00
Marc Ole Bulling 724489d2a4 Minor changes, added tests 2021-12-02 16:05:21 +01:00
Marc Ole Bulling d88a3cdd1e Added env DISABLE_LOGIN in order to support 3rd party authentication #30 2021-12-01 22:25:33 +01:00
Marc Ole Bulling 749682d924 Fixed typo 2021-08-05 11:05:17 +02:00
Marc Ole Bulling 18902ac954 Changed version number 2021-07-03 17:36:28 +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