Marc Ole Bulling
8f84b89402
Disable selection of binding to localhost in Docker image, added tests
2022-02-26 15:53:39 +01:00
Marc Ole Bulling
58c1e2aa56
Support for file encryption ( #38 )
2022-02-24 14:53:02 +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
ef71183cc5
Fixed test
2022-01-24 17:14:44 +01:00
Marc Ole Bulling
e2a023bf56
Check if ID length fits into db
2022-01-24 17:03:23 +01:00
Marc Ole Bulling
9f41697eb2
Refactored config to json
2022-01-24 13:18:45 +01:00
Marc Ole Bulling
8d11235456
Move log to data dir
2022-01-22 14:30:51 +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
2fbf9ad579
Cloud storage cannot be selected in setup if build without AWS support
2022-01-11 15:48:44 +01:00
Marc Ole Bulling
efc9ebe2f1
Only load MaxMemory from env if actually set
2022-01-10 16:08:13 +01:00
Marc Ole Bulling
7a233b388f
Refactoring, added tests, minor changes
2022-01-05 10:54:15 +01:00
Marc Ole Bulling
d963166d10
Fix setup JS, formatting setup
2022-01-02 23:18:01 +01:00
Marc Ole Bulling
6be3a92b7b
Replace env parsing with caarlos0/env library
2022-01-02 14:01:09 +01:00
Marc Ole Bulling
4eb609ece9
Fixed setup if no config directory exists
...
Remove temp files after upload
Set temp directory for docker to data directory by default #37
Increase default memory to 40
Added TMPDIR env
Update doc
2022-01-01 21:01:39 +01:00
Marc Ole Bulling
7d47744a20
More client-side setup validation, changed setup layout, return 127.0.0.1 if unknown IP
2021-12-31 18:00:08 +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
8e10f3710c
Added header-based authentication #30
2021-12-12 20:02:07 +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
30526a4caa
Decrease min length username to 3 and make it more accessible through a constant
2021-11-22 21:01:43 +01: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
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
Marc Ole Bulling
8d786df90a
Increased upload limit to 100GB
2021-05-28 12:44:44 +02:00
Marc Ole Bulling
e42586fcd6
Fixed AWS upload / download
2021-05-16 23:34:29 +02:00
Marc Ole Bulling
51c6ffab8c
Fixed lint warnings
2021-05-16 18:43:42 +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
ec850562e6
Added SSL support #16
2021-05-11 20:36:16 +02:00
Marc Ole Bulling
f965aa9807
Fixed password CLI input on Windows
2021-05-11 15:17:56 +02:00
Marc Ole Bulling
84c6a07635
Fixed reading terminal input on Windows, fixed upload error for Files > 20MB, fixed build tags
2021-05-11 14:22:09 +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
884c2d94b5
Added AWS S3 support #14
2021-05-10 14:37:29 +02:00
Marc Ole Bulling
733aa55637
Use config mutex for sessions to prevent data race, added note about bug in Go <1.17 regarding data race in html/template
2021-05-05 14:55:03 +02:00
Marc Ole Bulling
6af8896bdc
Added "cache-control:no-store" header, updated unit tests
2021-05-04 11:57:23 +02:00
Marc Ole Bulling
ca58161e19
Limit tries of username entries and display message (most likely when Docker container run without -it flag, see #3 )
2021-05-03 23:13:30 +02:00
Marc Ole Bulling
7a9ffee8c7
Fixed unit test
2021-05-03 23:07:24 +02:00
Marc Ole Bulling
bccedcb980
Fix for #11 , Docker containers were not reachable
2021-05-03 23:02:09 +02:00
Marc Ole Bulling
3ebcafbb81
Refactoring, using mutex to prevent race conditions for all configuration reads/writes
2021-04-30 15:12:34 +02:00
Marc Ole Bulling
e75b35f921
Undo incorrect refactoring
2021-04-30 12:53:31 +02:00
Marc Ole Bulling
d635d62268
Refactoring, enhancing unit tests
2021-04-30 12:46:36 +02:00
Marc Ole Bulling
f92a0f1776
Prevent race conditions for sessions
2021-04-22 14:52:38 +02:00
Marc Ole Bulling
8d1e45f228
Fixed CleanUp deleting file that was actively downloaded, which then failed the download, fixed write timeout, made webserver unit tests parallel, serve correct content header.
2021-04-21 18:06:23 +02:00
Marc Ole Bulling
aae4138fb6
Refactoring, fixed that GOKAPI_LENGTH_ID was ignored, check for incorrect cli flags, significantly increased test coverage
2021-04-19 22:44:02 +02:00
Marc Ole Bulling
abec640d64
Added unit tests, refactoring
2021-04-15 15:22:23 +02:00
Marc Ole Bulling
7486d3df51
Resolving lint warnings, badge added
2021-04-13 14:54:23 +02:00