Commit Graph

469 Commits

Author SHA1 Message Date
Marc Ole Bulling eff0448cf3 Added .env and updated docker-compose, removed unused GOKAPI_DATABASE_URL and GOKAPI_AWS_PROXY_DOWNLOAD 2025-06-10 12:52:34 +02:00
Marc Ole Bulling 3e2a8aa4a4 Fixed tests 2025-06-10 11:12:50 +02:00
Marc Ole Bulling f3df06224b Fixed error when username was less than 4 characters long #268 2025-06-10 11:09:12 +02:00
Marc Ole Bulling 5f22cfe748 Removed superfluous function generateUnsafeId v2.0.1 2025-06-08 16:30:29 +02:00
Marc Ole Bulling e60e5c5472 Fixed upload failing or showing incorrect filename for non-ASCII filenames #269, added option to base64 encode filename in API, fixed API documentation 2025-06-08 16:23:51 +02:00
SemvdH 1db59e0b13 Add docker compose example configuration (#267) 2025-06-06 15:36:36 +02:00
Marc Ole Bulling dc7d699e61 Added tests 2025-06-06 15:17:35 +02:00
Marc Bulling 9f36e90153 Fixed racy mutation that prevented file restoration in edge case, better test, fixed spelling (#262)
* Fix racy mutation, spelling
* Use timeout instead of fixed time, change delay to internally use ms instead of s
2025-06-01 00:35:26 +02:00
Marc Ole Bulling 5d15344a19 Fixed workflows 2025-05-31 15:27:45 +02:00
Marc Ole Bulling 0afc7a5660 Add permissions to workflows 2025-05-31 15:25:25 +02:00
Marc Bulling a2c032ed07 Update README.md v2.0.0 2025-05-31 13:47:45 +02:00
Marc Ole Bulling d3578e9bb8 Fixed undo-toast being clickable when not shown 2025-05-31 13:02:52 +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 Ole Bulling 4eaab13d11 Group buttons in Api and User view 2025-05-30 22:31:55 +02:00
Marc Ole Bulling 1a6f430fea Add share menu, group buttons #252 2025-05-30 22:09:12 +02:00
Marc Bulling 343cc566cf Fix CVE-2025-48494 XSS vulnerability for file upload, refactoring and formatting 2025-05-30 21:12:32 +02:00
Marc Bulling 65ddbc68fb Fix CVE-2025-48495 XSS vulnerability for API key name, refactoring and formatting 2025-05-30 20:59:40 +02:00
Marc Ole Bulling c896596b63 Fixed incorrect Download count showing when restoring file 2025-05-30 18:15:11 +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 427ce0dc27 Added security policy #258 2025-05-25 14:37:08 +02:00
Remco Brink ba54607e92 Refactor group scope handling to support both strings and array (#244)
Refactor group scope handling to support both string and array
v2.0.0-beta2
2025-05-19 20:49:11 +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 Bulling e41c4bd1ff Allow file deletion without refreshing the page (#255) 2025-05-03 17:37:00 +02:00
Marc Bulling ab390818f6 Added jetbrains note to Readme 2025-04-24 10:43:11 +02:00
Jakub 14d6448c57 Change hotlink URL to be shorter (#253) 2025-04-21 00:13:45 +02:00
Marc Bulling ab67370129 Delete directory from customcss branch 2025-04-19 22:50:46 +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 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