Paul Draeger
a1efcdf2cf
Added env variable to set a minium password length ( #312 )
...
Co-authored-by: Marc Ole Bulling <Marc-Ole@gmx.de >
2025-10-20 17:48:46 +02:00
Marc Ole Bulling
dc7d699e61
Added tests
2025-06-06 15:17:35 +02:00
Marc Ole Bulling
1969d43dd9
Fixed JS function being overwritten in last commit, added DB cache, fixed tests
2025-05-31 12:55:40 +02:00
Jakub
14d6448c57
Change hotlink URL to be shorter ( #253 )
2025-04-21 00:13:45 +02:00
Marc Ole Bulling
7928aedce7
Fixed tests
2025-04-19 22:23:20 +02:00
Marc Bulling
d88f649209
Add support for multiple different users, rewrote API, breaking API changes, UI changes
...
* Require 1.9.6 for upgrade, add function to get userID from request
* Automatically add user when successfully authenticated with headers / oauth, disallow modifing own user permissions
* Dont show user/pw page when using header authentication
* Only display redacted versions of API keys #228 , fixed deployment password
* Added animation for deleting API key
* Only create salt once
* Disable elements on upload UI if insufficient permissions
* BREAKING: User field must be email for OAUTH2, added warning in setup when changing database
* BREAKING: Added option to restrict to only registered users
* Fixed crash due to concurrent map iteration
* Replace /uploadComplete with API call, BREAKING API is now in headers
* BREAKING: require true|false instead of only checking for true
* BREAKING API: Renamed apiKeyToModify parameter to targetKey
2025-02-04 09:22:55 +01:00
Marc Ole Bulling
53d27c2889
Make /uploadComplete non blocking ( #224 ), added /files/list/{id} API call, changed UploadStatus from database to in-memory, internal WebUI calls return 401 if unauthorised, make specific-test verbose
2024-12-14 13:24:23 +01:00
Marc Ole Bulling
6f582b25d8
Store upload defaults locally ( #214 ), breaking API changes
2024-12-06 14:36:08 +01:00
Marc Ole Bulling
b56970bf88
Add Redis support / make database location and provider selectable in setup ( #180 )
2024-07-07 22:13:51 +02:00
Marc Ole Bulling
f7ba24913d
Added tests, fixed typo
2024-06-15 22:51:20 +02:00
Marc Ole Bulling
7fef0450bc
Updated makefile, added tests, remove lastupdate database entry for uploadstatus
2024-06-09 19:33:23 +02:00
Marc Ole Bulling
98e20beaff
Replaced SSE library with own code
2024-06-09 15:27:23 +02:00
Marc Ole Bulling
9083ac3d05
Added option to restrict OIDC users and groups better with custom scopes, better OIDC error handling, try silent OIDC consent first before showing prompt, fixed download button symbol on e2esetup
2024-01-19 17:28:22 +01:00
Marc Ole Bulling
d24ea9735a
Fixed tests
2023-11-28 14:20:33 +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
Marc Ole Bulling
dd16c9c8d7
Added tests
2023-04-01 13:26:24 +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
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
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
83e4e4a39c
Fixed test, minor UI changes
2022-03-08 18:49:04 +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
1c230b3c5e
Added tests and comments
2022-03-01 16:12:04 +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
2b79dcc63c
Fixed Upgrade package
2022-01-25 16:14:28 +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
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
e6227a95be
Fixed AWS tests, refactoring
2021-05-17 11:04:39 +02:00
Marc Ole Bulling
80c2a70030
Added documentation, modified AWS config example
2021-05-16 21:53:13 +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
04de068d96
Added simple integration test
2021-05-13 18:41:04 +02:00
Marc Ole Bulling
ec850562e6
Added SSL support #16
2021-05-11 20:36:16 +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
c8a019e22a
Fixed lint issues, set Go version to 1.16.4
2021-05-07 17:15:12 +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
a3a4ac1a71
Updated version number, enhanced unit tests
2021-05-05 13:53:42 +02:00
Marc Ole Bulling
d635d62268
Refactoring, enhancing unit tests
2021-04-30 12:46:36 +02:00