65 Commits

Author SHA1 Message Date
Marc Ole Bulling
1951a268aa Removed wasm_exec.min.js from git repo, changed to go1.22, updated version number 2024-04-20 15:10:37 +02:00
Marc Ole Bulling
807b270124 Removed debug output 2024-04-13 19:43:06 +02:00
Mason Francis
a7786f051d Add flag to install Gokapi as a systemd service (#152)
Co-authored-by: Marc Ole Bulling <Marc-Ole@gmx.de>
2024-04-13 19:38:55 +02:00
Marc Ole Bulling
729185faea Added env variable to disable CORS check 2024-04-13 00:21:29 +02:00
Marc Ole Bulling
a08cd2e8f1 Updated version number and changelog 2024-02-07 16:27:40 +01:00
Marc Ole Bulling
64de638e0c Updated documentation, version number 2023-12-09 13:31:58 +01:00
Marc Ole Bulling
c68afacaa5 Added permission model for API keys #79, replaced button text with icons 2023-11-28 13:47:51 +01:00
Marc Ole Bulling
1d0bde6644 Changed to sqlite, dropped Windows 32bit support, fixed data dir env not being persistant #115, updated readme 2023-11-21 20:50:30 +01:00
Kwonunn
f890e416fc Fix the ASCII logo 2023-09-17 13:17:19 +02:00
Marc Ole Bulling
59271c2ff2 Added option to change the name in the setup, show filename in title for downloads, use sessionStorage instead of localStorage for e2e decryption, replaced expiry image with dynamic SVG 2023-05-13 14:33:37 +02:00
Marc Ole Bulling
1e75b9641d Updated version number 2023-04-14 19:42:26 +02:00
Marc Ole Bulling
569e0d2c1c Updated version number 2023-04-14 15:41:47 +02:00
Marc Ole Bulling
87145635d8 Minify CSS and JS, removed shadow from text input 2023-04-03 20:33:37 +02:00
Marc Ole Bulling
a23a0999f0 Added go:generate for protected URLs, fixed test and reduced time for Setup test significantly, updated dependencies 2023-04-01 16:45:37 +02:00
Marc Ole Bulling
da13408e1d Removed deprecated rand.Seed, set min Go version to 1.20+ 2023-03-31 14:22:40 +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
63c3828805 Fixed that hotlink was created when file requiered client-side decryption.
Fixed hotlink being displayed if password was set and client-side decryption required
2023-03-30 16:21:44 +02:00
Marc Ole Bulling
a86e64f2c3 Refactor uploading of new files from chunks, introduced filesystem driver 2023-03-30 15:53:36 +02:00
Marc Ole Bulling
2d57cd663a Update upload count dynamically #92, remove debug log, update dependencies 2023-03-10 21:30:07 +01:00
Marc Ole Bulling
7fe7f6158b Updated versions 2023-02-13 23:52:39 +01:00
Marc Ole Bulling
a313d26718 Added log viewer, set JS versions through go generate 2023-02-13 23:25:47 +01:00
Marc Ole Bulling
bdeaac4926 Make overview sortable and searchable #86 2022-12-14 23:01:51 +01:00
Marc Ole Bulling
648baae684 Fixed that setup on docker was unable to complete 2022-08-17 22:50:10 +02:00
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
844dd350c4 Added flag to disable CORS check on startup, fixed usage view exiting with code 2 2022-08-01 14:51:30 +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
1c28174cda Move Flagparser, fixed tests 2022-05-21 11:14:09 +02:00
Marc Ole Bulling
8746a86530 Fixed tests 2022-05-21 00:55:14 +02:00
Marc Ole Bulling
a449e91b78 Added flags for config, data and port, better flag usage overview 2022-05-21 00:50:08 +02:00
Marc Ole Bulling
a72236ab70 Refactor: Rename datastorage to database 2022-03-16 18:31:55 +01:00
Marc Ole Bulling
9e7fa0fa33 Added more version info 2022-03-16 12:06:22 +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
c3fcd6981c Added warning if CORS settings are not set encryption enabled 2022-03-12 08:46:23 +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
bfaf95f9ef Host serviceworker on same domain if using https #49 2022-03-10 14:31:36 +01:00
Marc Ole Bulling
169e1afc01 Set new version, added tests 2022-03-08 15:36:13 +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
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
d88a3cdd1e Added env DISABLE_LOGIN in order to support 3rd party authentication #30 2021-12-01 22:25:33 +01:00
Marc Ole Bulling
18902ac954 Changed version number 2021-07-03 17:36:28 +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