Mickael Kerjean
0a0809d951
improve (boot): decrease boot time
...
Filestash needs to run a couple setup function. We used to run those
after DOMContentLoaded, losing about ~15ms where we didn't need to as
we can run everything in parallel
2022-10-11 07:21:14 +11:00
Mickael Kerjean
456937d0cd
feature (state): revamp state management via indexedDB
2022-10-11 00:02:54 +11:00
Mickael Kerjean
88bd7d67dc
feature (tags): revamp data model and storage
2022-10-11 01:45:34 +11:00
Mickael Kerjean
9fa8428a28
feature (tags): UI for tag page
2022-10-10 22:20:52 +11:00
Mickael Kerjean
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
Mickael Kerjean
7f14b2c563
feature (tag): ideas for the tag page
2022-10-08 01:56:34 +11:00
Mickael Kerjean
9a6e24c296
feature (tagging): prepare the ground for a new tagging feature
2022-10-06 23:33:58 +11:00
Mickael Kerjean
9f083ea94c
improve (logger): logger interface for tests or plugin swap
2022-10-06 08:02:25 +11:00
Mickael Kerjean
3d3b59524a
improve (template): contains function in template
2022-10-05 08:35:50 +11:00
Mickael Kerjean
8ad705b70c
feature (tmpl): enable contains function in tmpl filter
2022-10-05 07:54:03 +11:00
Mickael Kerjean
70884300a3
fix (plg_image_thumbnail): broken build
2022-10-04 17:49:04 +11:00
Mickael Kerjean
9b5af40f32
maintain (plg_security_scanner): new endpoint ideas
...
with new ideas coming from the hn thread https://news.ycombinator.com/item?id=33054379
2022-09-04 07:39:20 +10:00
Mickael Kerjean
42b2435c16
fix (plg_image_thumbnail): build issue
2022-10-04 00:26:40 +11:00
Mickael Kerjean
46b67d6711
feature (thumbnail): complete revamp of thumbnail generation
2022-10-03 23:40:46 +11:00
Mickael Kerjean
9a1045cb02
feature (plg_image_thumbnail): clean before release
2022-10-03 22:28:58 +11:00
Mickael Kerjean
01b418b608
fix (contentType): disable js in file cat API
2022-10-03 00:06:41 +11:00
Mickael Kerjean
918965ddbe
feature (plg_image_thumbnail): new thumbnail generation
...
This plugin will replace plg_image_light once it has the same
features. It is much easier to install, fixing #507 , #368 and every
other ticket that mention issues to compile Filestash
2022-10-03 00:01:24 +11:00
Mickael Kerjean
7a76f7dcda
maintain (logging): improve some log message
2022-09-28 22:52:33 +10:00
Mickael Kerjean
e8968d824a
fix (window): cross compile for windows
2022-09-28 21:16:10 +10:00
Mickael Kerjean
706adc3475
fix (config): remove useless / buggy option
2022-09-28 21:03:21 +10:00
Mickael Kerjean
21a72b2048
maintain (generator): simplify build command
...
Before this commit our build had this option:
-ldflags "-X github.com/mickael-kerjean/filestash/server/common.BUILD_DATE=`date -u +%Y%m%d` -X github.com/mickael-kerjean/filestash/server/common.BUILD_REF=`git rev-parse HEAD`"
Doing this via a generator is much easier for people getting started
with Filestash
2022-09-28 18:11:58 +10:00
Mickael Kerjean
3013141999
clean (sqlite): sqlite without cgo
...
We want to make it easier to compile the project for newcomers
2022-09-28 13:58:25 +10:00
Mickael Kerjean
1125998944
maintain (bcrypt): make local plugin faster
...
the local plugin would go through bcrypt for every single call which
can be annoying at it makes things slower. By reducing the number of
rounds, we're making it quicker to use the local plugin.
Since a few weeks, every endpoint that relies on bcrypt are rate
limited so this shouldn't make things easier for an attacker to break in :)
2022-09-28 07:30:12 +10:00
Mickael Kerjean
b9a177aa26
maintain (404): change 404 page
2022-09-21 17:01:12 +10:00
Mickael Kerjean
9d596704e7
feature (api): public api
2022-09-20 17:43:26 +10:00
Mickael Kerjean
8ee1372760
doc (update): readme
2022-09-16 07:52:23 +10:00
Mickael Kerjean
548b057d6a
fix (selfsigned): self signed certificate issues
2022-09-15 22:38:54 +10:00
Mickael Kerjean
1844c6d33e
maintain (debug): add debug statements
2022-09-15 19:32:17 +10:00
Mickael Kerjean
0748e56092
fix (recover): recover from possible panic
2022-09-15 18:53:36 +10:00
Mickael Kerjean
7a9f94ce6d
fix (middleware): "cannot parse time" issue causing infinite loop
2022-09-15 07:32:04 +10:00
Mickael Kerjean
e2874f2a9b
improve (404): 404 errors
2022-09-14 23:55:11 +10:00
Mickael Kerjean
2197385d54
fix ( #508 ): support for traditional chinese
2022-09-13 19:51:34 +10:00
Mickael Kerjean
c856f1666b
maintain (ci): remove benchmark from ci
2022-09-13 18:36:43 +10:00
Mickael Kerjean
d0c8f75b01
fix (rate limit): update default value for rate limit
2022-09-13 17:34:42 +10:00
Mickael Kerjean
d0e2c4a227
maintain (error): add internal error
2022-09-13 17:28:53 +10:00
Mickael Kerjean
87443235a2
fix (backend): clean up caching
2022-09-13 15:24:21 +10:00
Mickael Kerjean
720073a181
Merge branch 'master' of ssh://github.com/mickael-kerjean/filestash
2022-09-13 14:50:25 +10:00
thielepaul
0d55704031
fix (sftp_backend): wait until all requests are finished before closing ( #506 )
2022-09-13 14:49:15 +10:00
Mickael Kerjean
865442ea59
fix (vet): go vet - #505
2022-09-13 14:12:13 +10:00
Mickael Kerjean
69f00c2a6f
fix ( #508 ): translation issue for traditional chinese
2022-09-13 13:52:01 +10:00
Mickael Kerjean
76bf595e22
feature (token): token generation for API
2022-09-13 13:25:17 +10:00
Mickael Kerjean
18279dcb4e
fix (middleware): broken build
2022-09-13 13:21:21 +10:00
Mickael Kerjean
3f933e08db
feature (preflight): preflight to /api/files
2022-09-13 13:12:26 +10:00
Mickael Kerjean
ccb156678b
fix (cache): RLock instead of lock
2022-09-13 13:01:03 +10:00
Mickael Kerjean
66c6788b94
feature (doc): embed documentation
2022-09-13 12:53:02 +10:00
Mickael Kerjean
fa84e37df2
refactor (api): move rm/mv/touch/mkdir to http post
2022-09-13 12:51:27 +10:00
Mickael Kerjean
0acf94ce0c
fix (middleware): bodyparser must not return an error if no body
2022-09-12 01:05:44 +10:00
Mickael Kerjean
bd9deb858d
feature (crypto): nonce generator as a counter
2022-09-09 23:22:47 +10:00
Mickael Kerjean
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
Mickael Kerjean
d53cbefc54
fix (plg_image_ascii): reasonable content type
2022-09-08 15:19:10 +10:00