Commit Graph

159 Commits

Author SHA1 Message Date
Marc Bulling b761ee7d82 Use browser timezone instead of server timezone for UI, breaking API output for FileList (#343)
* Make dates in Upload view browser TZ, BREAKING change API output to UTC for ExpireAtString

* Changed user and api key overview to local TZ, increased JS version

* Fixed FileList API output to comply with API specs, fixed tests
2025-12-29 11:53:56 +01:00
Marc Bulling 75745aebb8 Use short-lived tokens instead of user API keys (#340) 2025-12-20 21:02:17 +01:00
Marc Ole Bulling 14b2f7b645 Added warning if Redis persistence is disabled and added documentation 2025-12-04 17:31:26 +01:00
Marc Ole Bulling 5a03054f22 Fixed documentation regarding DB migration 2025-12-04 16:26:10 +01:00
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 f68efc57a2 Better error handling for permission errors or other file related errors #326 2025-10-19 21:10:35 +02:00
Marc Ole Bulling 16e4079ffa Fixed tests 2025-08-29 11:20:07 +02:00
Marc Ole Bulling 8783499163 Switch to Go1.25, remove legacy upgrade code, small refactoring 2025-08-29 11:02:00 +02:00
Marc Ole Bulling be5dee136c Fixed minor HTML syntax errors in setup 2025-08-28 15:17:54 +02:00
Marc Bulling 9a574dbed5 Added a CLI tool for uploading that also supports e2e (#280) 2025-08-08 16:51:54 +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
Marc Bulling d8340911d5 Add restore feature when deleting file from admin menu or API (#261)
* Added API call /files/restore, added parameter to /files/delete to add delay, have 10s delay when deleting from UI

* Fixed DB upgrade function not exiting on old version, added and fixed tests
2025-05-28 11:33:39 +02:00
Marc Ole Bulling 20ee8cbfa4 Minor refactoring and adding of comments 2025-05-25 17:07:06 +02:00
Marc Bulling 6d68134240 Added upload timestamp to metadata and API output, sort by upload data in main menu (#260) 2025-05-25 16:20:31 +02:00
Marc Bulling d4bfad90c3 Add feature to add custom css/js instead of overwriting all content (#248) 2025-05-19 20:43:18 +02:00
Marc Ole Bulling 7928aedce7 Fixed tests 2025-04-19 22:23:20 +02:00
Marc Ole Bulling 92c42fe250 Make GOKAPI_LENGTH_ID non-permanent, add GOKAPI_LENGTH_HOTLINK_ID to change hotlink ID length #251 2025-04-19 22:06:20 +02:00
Marc Bulling f36d39e728 Added extended logging (#240), fixed bug that prevented setting Manage_Users API permission on new API key, added Manage_Logs API permission
* Added Manage_Logs API permission, added API endpoint to delete logs, added more logging, added filtering and deletion of logs in UI, fixed bug that prevented setting Manage_Users API permission on new API key
2025-03-21 15:06:17 +01:00
Marc Ole Bulling fe8a1216b9 Fixed sqlite bug for e2e reset 2025-02-25 20:51:01 +01:00
Marc Ole Bulling c445fd92db Fix email scope not being submitted #234, fix always being redirected after successful OIDC login 2025-02-05 12:28:34 +01: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 c167e752f3 Add API call and GUI option to replace content of files, API returns 404 on invalid file IDs, better handling for E2E errors 2024-12-15 17:07:29 +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 79961f05f8 Renamed "Access Restriction" to indicate that authentication is disabled, changed documentation #221 2024-12-12 17:52:25 +01:00
Marc Ole Bulling 61a8c8d6fa Refactoring, added comments 2024-12-12 17:35:37 +01:00
Marc Ole Bulling ed8d476f3c Change download count atomically to prevent race condition (#223) 2024-12-12 17:02:31 +01:00
Marc Ole Bulling aaae185dbc Better error handling for AWS setup check 2024-12-11 13:15:01 +01:00
Marc Ole Bulling 5a2c097460 Fixed upgrade process 2024-12-08 16:19:27 +01:00
Marc Ole Bulling 1e43148ab6 Fix for #216, updated versions and go build 2024-12-08 16:05:48 +01:00
Marc Ole Bulling be589fc758 Always recreate API key table in sqlite #215 2024-12-07 13:48: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 a291030918 Added warnings in setup if /app/data or /app/config is not mounted as a volume #203 2024-12-05 19:57:16 +01:00
Marc Ole Bulling ddc72b0a98 Use API for most of UI interactions with an internal API key (#211), breaking API changes
* Changed color of API procressing status

* Added internal system key, use system key for API page perm changes, BREAKING: removed session auth

* API: Added /auth/delete, added option to include basic parameters in /auth/create, migrated API overview page completely to use API calls

* Added toast in API menu for clipboard, removed reference to session authentication in documentation

* Changed delete button in upload menu to API call, fixed modify API call in menu #210

* Set Api key in API menu for changing permissions, renamed title for Deleting Uploads permission, refactoring

* Added tests, refactoring
2024-12-05 13:55:11 +01:00
Marc Ole Bulling f08490e69e Fixed crash after running setup and changing encryption #197, changed versioning of css/js files to prevent caching #195 2024-07-26 14:19:51 +02:00
Marc Ole Bulling 94def515ca Added tests, changed version number 2024-07-15 13:30:28 +02:00
Marc Ole Bulling e704904ed1 Updated version numbers 2024-07-12 19:52:24 +02:00
Marc Ole Bulling e0741c86c0 Fixed SQLite update #189 2024-07-12 19:47:06 +02:00
Marc Ole Bulling f909db076f Have seperate Database schema version, do not run upgrade when initiating database 2024-07-12 19:15:58 +02: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 933ad58f81 Removed legacy DB upgrade option, added tests
-
2024-06-10 16:35:16 +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 b14d9f9e51 Added tests and coverage to makefile, updated dependencies, added tests 2024-06-09 17:43:45 +02:00
Marc Ole Bulling 98e20beaff Replaced SSE library with own code 2024-06-09 15:27:23 +02:00
Marc Ole Bulling 6beabdebc3 Added option to display filenames in URL (#171), breaking API changes, refactoring, update OpenAPI 2024-06-08 21:52:14 +02:00
Marc Ole Bulling 0341a7f42c Fixed Chunksize and MaxUploads = 0 after running setup, made MaxMemory persistant, as per documentation 2024-06-08 19:28:11 +02:00
Marc Ole Bulling 3b7cdae6fd Added settings to set the chunk size and amount of parallel uploads for faster upload speed, fixes #162. Updated documentation 2024-06-07 16:38:59 +02:00
Marc Ole Bulling 97368ca6ae Fix setup option "save images always locally" reverting to default in setup #165, added option to proxy downloads from s3 to setup #75, rewording in setup 2024-05-26 22:01:39 +02:00
Marc Ole Bulling 5a31cd5d63 Added deployment-password flag, generate salts if invalid, added section for automatic deployment to docs 2024-05-22 23:12:45 +02:00
Marc Ole Bulling edd5ecf76b Run Gokapi as non-root in docker container #57, report IP always as 127.0.0.1 for docker container 2024-05-02 17:12:50 +02:00