Commit Graph

440 Commits

Author SHA1 Message Date
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 Ole Bulling
d82303f96f Fix that an empty line was inserted before <!doctype html> 2025-03-28 22:39:06 +01:00
Marc Ole Bulling
0fba1230f7 Fix bug where picture files where not uploaded at all when encryption and cloud storage was active as well as SaveToLocal #247 2025-03-24 21:33:43 +01:00
Marc Ole Bulling
450a25ad7a fixed test 2025-03-24 12:04:16 +01:00
Marc Ole Bulling
cbd0cc7708 Enable hotlinking for videos with env var, removed deprecated DB_NAME env var from docs 2025-03-24 11:58:53 +01: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
Remco Brink
af5f46b2c6 Fix DuplicateFile setting hotlink on wrong file object (#246) 2025-03-17 13:11:16 +01:00
Marc Ole Bulling
fe8a1216b9 Fixed sqlite bug for e2e reset 2025-02-25 20:51:01 +01:00
Marc Ole Bulling
ba729b11eb Updated to Go1.24, updated dependencies (fixing CVE-2025-22868) 2025-02-25 20:16:02 +01:00
Marc Ole Bulling
472935bb33 Updated version numbers to clear cache 2025-02-05 14:25:25 +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
v2.0.0-beta1
2025-02-04 09:22:55 +01:00
Marc Ole Bulling
e0c0dcc55c Reset edit modal on close #232 2025-01-31 17:15:38 +01:00
Marc Ole Bulling
d080cfa058 Changed headers for cache control to stop unwanted caching with cloudflare #209 2025-01-30 12:39:15 +01:00
Marc Ole Bulling
4bf5b7c688 Fixed crash due to concurrent map iteration 2025-01-11 17:21:15 +01:00
Marc Ole Bulling
34873b5680 Split JS into multiple files for better maintenance, changed version number v1.9.6 2024-12-18 15:31:12 +01:00
Marc Ole Bulling
e4fe1452fb Add new API keys to UI without reloading, add small animation, remove html_users.tmpl originaly from unpublished branch 2024-12-18 12:02:21 +01:00
Marc Ole Bulling
aebd5a439e Split admin.js into two JS files, refactoring 2024-12-17 23:53:43 +01:00
Marc Ole Bulling
2cc36096fb Added env variable GOKAPI_DISABLE_REPLACE to displace replace feature, until user permissions are added 2024-12-17 15:55:00 +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
103fc49f8e Fixed e2e setup not working when entering backup key 2024-12-14 23:22:30 +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
1611127bfa Also update download remaining counter #206 2024-12-12 13:01:55 +01:00
Marc Ole Bulling
b230f86ed0 Fixed race condition that could lead to crash #222 2024-12-12 12:07:38 +01:00
Marc Ole Bulling
b73fadee03 Added animation for increasing download count, updated dependencies 2024-12-12 11:09:00 +01:00
Marc Ole Bulling
2495770d28 Updated dependencies 2024-12-12 10:22:14 +01:00
Marc Ole Bulling
189b185d46 Updated dependencies 2024-12-12 10:10:08 +01:00
Marc Ole Bulling
0d40a017f9 Fixed test, do not use cached test when using make test-specific 2024-12-11 18:19:01 +01:00
Marc Ole Bulling
d215994eb8 Update download count in real time #206 2024-12-11 16:18:09 +01:00
Marc Ole Bulling
ae1d3330bb Fixed upload defaults being deleted when resetting e2e key 2024-12-11 13:22:53 +01:00
Marc Ole Bulling
aaae185dbc Better error handling for AWS setup check 2024-12-11 13:15:01 +01:00
Marc Ole Bulling
df952052fb Display error message on UI download failed due to CORS not set properly #217 2024-12-11 11:38:12 +01:00
Marc Ole Bulling
575d4a6025 Display error message, if encrypted download fails due to invalid SSL #219 2024-12-11 10:50:05 +01:00
Marc Ole Bulling
5a2c097460 Fixed upgrade process v1.9.5 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
945b50cb5e Changed version number v1.9.4 2024-12-07 20:57:36 +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
94ef26027c Update docker build to go 1.23.4 v1.9.3 2024-12-07 09:27:06 +01:00
Marc Ole Bulling
1a0b7f90f8 Updated version number and changelog 2024-12-07 09:21:59 +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
520f796c50 Fixed UI when uploading file larger than max allowed file size #213 2024-12-06 11:38:32 +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
5a155f7180 Changed "bare metal" to "native installation" in documentation #208, changed order 2024-11-28 06:25:18 +01:00
Marc Ole Bulling
6143449b8c Removed unnecessary error check 2024-11-28 05:59:57 +01:00
Marc Ole Bulling
0e80a59e15 Added preview for WhatsApp v1.9.2 2024-09-30 18:02:00 +02:00
Marc Ole Bulling
0ec822fb55 Changed version number 2024-09-30 17:06:16 +02:00