91 Commits

Author SHA1 Message Date
8ff5b47f06 feature (tag): support for tagging 2025-08-07 23:05:44 +10:00
34d0460278 feature (wizard): improve setup wizard 2025-06-30 13:42:51 +10:00
e2f3475bfc chore (about): revamp about page 2025-06-28 02:52:29 +10:00
65cf080af7 fix (admin): report validation error
I've seen someone who mistakenly had updated their config secret key,
not sure if it was done by a weird password manager or a manual action
but that did corrupt their entire setup.

We now make sure value like secret key get validated before saving.
Didn't realise this would be necessary to start with as the appraoch has
always been "with great power come great responsability" but if it can
prevent catastrophic failure mode hapening by mistake, then we will be
making an exception to the moto
2025-02-06 21:06:55 +11:00
22f17f17e6 chore (version): refactoring around configuration 2025-01-28 15:16:13 +11:00
f1b1d71f40 feature (signature): protect url param via signature 2025-01-15 01:09:53 +11:00
0d4709595c chore (refactoring): 3d app revamp 2025-01-13 22:53:02 +11:00
8422268a21 fix (#771): search from text editor 2024-12-14 20:49:26 +11:00
87a1987219 feature (upload): support for chunked uploads 2024-11-27 00:52:29 +11:00
9e142d5de5 feature (dynamic): make configuration dynamic 2024-03-13 00:18:24 +11:00
ac51227d50 fix (config): type error in featurs->share->redirect 2023-09-05 00:34:19 +10:00
b4572be6e9 feature (config): default value as env variable for log level 2023-06-09 00:47:47 +10:00
1e562aa8e8 maintain (api): config endpoint refactoring 2023-04-25 10:47:44 +10:00
bb7840f27e feature (chromecast): image viewer chromecast support 2023-04-14 00:08:17 +10:00
a78e817657 feature (thumbnailer): add plugin type for thumbnail generation 2022-12-02 07:09:11 +11:00
b6762ddd4c feature (input): password fields with view button 2022-11-25 16:38:00 +11:00
7d5719445c feature (standalone): reasonable default for standalone usage
we can now create fat binary build, we've optimise a few corner case
to make it nice to do so
2022-11-23 01:09:19 +11:00
7b4e3eba79 feature (admin): simplify admin backend page 2022-11-09 08:09:01 +11:00
ce935525db fix (config): concurrent issue
fatal error: sync: unlock of unlocked mutex

goroutine 6 [running]:
runtime.throw(0x1420562, 0x1e)
	/usr/local/go/src/runtime/panic.go:1117 +0x72 fp=0xc0000b5ec8 sp=0xc0000b5e98 pc=0x439e92
sync.throw(0x1420562, 0x1e)
	/usr/local/go/src/runtime/panic.go:1103 +0x35 fp=0xc0000b5ee8 sp=0xc0000b5ec8 pc=0x46e395
sync.(*Mutex).unlockSlow(0x1f97138, 0xffffffff)
	/usr/local/go/src/sync/mutex.go:196 +0xd8 fp=0xc0000b5f10 sp=0xc0000b5ee8 pc=0x47d458
sync.(*Mutex).Unlock(...)
	/usr/local/go/src/sync/mutex.go:190
github.com/mickael-kerjean/filestash/server/common.(*Configuration).Get(0x1f97120, 0x140a506, 0x14, 0x0)
	/home/mickael/Documents/projects/filestash/server/common/config.go:438 +0x113 fp=0xc0000b5f90 sp=0xc0000b5f10 pc=0x7ba313
github.com/mickael-kerjean/filestash/server/common.init.0.func1(0x0)
	/home/mickael/Documents/projects/filestash/server/common/api.go:16 +0x46 fp=0xc0000b5fc0 sp=0xc0000b5f90 pc=0x7c7906
github.com/mickael-kerjean/filestash/server/common.init.0.func3()
	/home/mickael/Documents/projects/filestash/server/common/api.go:40 +0x29 fp=0xc0000b5fe0 sp=0xc0000b5fc0 pc=0x7c7c49
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:1371 +0x1 fp=0xc0000b5fe8 sp=0xc0000b5fe0 pc=0x4733e1
created by github.com/mickael-kerjean/filestash/server/common.init.0
	/home/mickael/Documents/projects/filestash/server/common/api.go:39 +0x5a

goroutine 1 [runnable, locked to thread]:
os.(*File).Read(0xc000186000, 0xc000280400, 0x100, 0x100, 0x401, 0xc000280000, 0x400)
	/usr/local/go/src/os/file.go:113 +0x265
io.ReadAll(0x1677e40, 0xc000186000, 0x0, 0x1ff, 0xc000186000, 0x0, 0x0)
	/usr/local/go/src/io/io.go:633 +0xdf
io/ioutil.ReadAll(...)
	/usr/local/go/src/io/ioutil/ioutil.go:27
github.com/mickael-kerjean/filestash/server/common.LoadConfig(0x0, 0x0, 0x0, 0x1fc66e0, 0x0)
	/home/mickael/Documents/projects/filestash/server/common/config_state.go:32 +0x85
github.com/mickael-kerjean/filestash/server/common.(*Configuration).Load(0x1f97120)
	/home/mickael/Documents/projects/filestash/server/common/config.go:214 +0x34
github.com/mickael-kerjean/filestash/server/common.init.1()
	/home/mickael/Documents/projects/filestash/server/common/config.go:53 +0x85
2022-10-10 08:22:45 +11:00
706adc3475 fix (config): remove useless / buggy option 2022-09-28 21:03:21 +10:00
865442ea59 fix (vet): go vet - #505 2022-09-13 14:12:13 +10:00
7e5ec42f6c maintain (config): openup 2 methods for Config for plugins
This is for plugins to do more fine grained stuff with the global
Config object
2022-09-09 15:12:14 +10:00
b1c1f9e0f2 feature (api): api configuration 2022-09-07 00:50:23 +10:00
bb9fb89d44 fix (concurrency): prevent concurrent map writes
when booting up, we have a lot of Set in the Config alongside a lot of
Get, Let's block all the concurrent Set
2022-09-01 23:28:29 +10:00
629a80c836 fix (#469): allow cross domain iframe 2022-04-20 08:04:09 +10:00
d1890ecb33 cleanup (config): remove dead code 2022-04-07 07:35:26 +10:00
9171b6fb5e refactoring (config): separate config loading and saving
The idea is that we can now plug and play different logic for loading
and saving configuration data via a go generator built from plugins
2022-02-04 00:51:57 +11:00
b6c71e9333 fix (config): hide non registered config values 2022-01-17 03:37:37 +11:00
e5800c6c3b feature (sso): authentication middleware 2022-01-06 20:22:26 +11:00
095876d450 feature (config): make cookie timeout configurable by admin 2021-10-30 22:31:14 +11:00
8d413214e2 fix (cabinedit): issue faced by cabinedit 2021-10-06 21:52:19 +11:00
924a56aa82 feature (shared): redirect + configurable default access type 2021-10-02 17:16:43 +10:00
2e86ac7bb2 improve (admin): additional customisations on admin console 2021-09-19 14:04:11 +10:00
929064b55f maintenance (iframe): content security policy update 2021-08-23 00:00:57 +10:00
51ed97cc9d fix (test): broken test 2021-08-22 20:46:05 +10:00
a0b2ca72ed merge 2021-08-22 16:43:25 +10:00
4ef1017e65 merge 2021-08-22 16:41:45 +10:00
5e43f1a4b3 feature (migration): config migration mechanism 2021-08-22 16:37:05 +10:00
b26bdfa1c6 merge 2021-08-22 13:11:22 +10:00
a67681f454 maintain (feature): remove option from admin backend 2021-08-22 13:08:59 +10:00
5e24d66903 feature (refresh): option to refresh content after upload 2021-08-22 13:08:40 +10:00
8543b51b6b merge 2021-08-22 13:08:11 +10:00
137b36e0a7 feature (logout): customisable logout button 2021-08-22 13:05:09 +10:00
39f6987465 cleanup (#381): fit pull request 2021-08-22 13:05:09 +10:00
31564efaec feature (#381): option to limit the number of simultaneous upload (#381)
* add an option to change the number of parallel uploads

* undo automatic format

Co-authored-by: Quentin Bramas <bramas@unistra.fr>
2021-08-22 13:05:09 +10:00
d91726e7a1 maintain (feature): remove option from admin backend 2021-08-15 00:41:09 +10:00
16310b9fe0 feature (refresh): option to refresh content after upload 2021-08-13 00:41:45 +10:00
3808ed856b feature (menubar): toggle menubar from admin setting 2021-08-08 22:01:56 +10:00
c8c544051a feature (logout): customisable logout button 2021-08-08 21:47:53 +10:00
80949194b7 cleanup (#381): fit pull request 2021-07-20 00:55:23 +10:00