Jörn Friedrich Dreyer
f065e8acdc
expect only the tus related cors allow header values
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2026-08-21 07:34:47 +02:00
Jörn Friedrich Dreyer
72c0ee9e54
do not set datagateway url for storage drivers
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2026-08-21 07:34:46 +02:00
Jörn Friedrich Dreyer
fff84b844f
drop STORAGE_USERS_EXPOSE_DATA_SERVER env var
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2026-08-21 07:34:46 +02:00
Jörn Friedrich Dreyer
a74661618e
refactor datagateway into proxy middleware
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2026-08-21 07:34:46 +02:00
Andre Duffeck
efb73c8a79
Merge pull request #2702 from aduffeck/fix-nats-ttl
...
Set new defaults for caches and stores
2026-05-11 11:04:10 +02:00
André Duffeck
e60d86cf2c
Use time.Hour where appropriate
2026-05-07 21:41:26 +02:00
André Duffeck
e246d6d613
Make the ScanFS option configurable via env var
2026-05-07 08:29:48 +02:00
André Duffeck
544968a4de
Set new defaults for caches and stores
...
See https://github.com/opencloud-eu/opencloud/issues/2681 for more
details.
2026-04-30 11:00:12 +02:00
André Duffeck
e2f6a68810
Do not ever set a TTL for the ID cache. It's not supposed to expire.
2026-01-28 12:52:24 +01:00
Christian Richter
9b3fde49fe
consolidate log config in storage-users
...
Signed-off-by: Christian Richter <c.richter@opencloud.eu >
2026-01-08 13:36:12 +01:00
Jörn Friedrich Dreyer
a3ef7f6d79
update otlp tracing
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2025-11-27 12:28:15 +01:00
Jörn Friedrich Dreyer
2751cfee2c
directly connect to frontend
...
The STORAGE_USERS_DATA_GATEWAY_URL env var is used in the `tokens` `datagateway_endpoint` reva configuration. That `DataGatewayEndpoint` is used by the decomposedfs driver to create urls:
```go
// URL returns a url to download an upload
func (session *DecomposedFsSession) URL(_ context.Context) (string, error) {
// [ ... ]
return joinurl(session.store.tknopts.DataGatewayEndpoint, tkn), nil
}
```
As the comment points out this URL is internally used when emitting events. Either in:
```go
func (session *DecomposedFsSession) FinishUploadDecomposed(ctx context.Context) error {
// [ ... ]
s, err := session.URL(ctx)
if err != nil {
return err
}
var iu *userpb.User
if utils.ExistsInOpaque(u.Opaque, "impersonating-user") {
iu = &userpb.User{}
if err := utils.ReadJSONFromOpaque(u.Opaque, "impersonating-user", iu); err != nil {
return err
}
}
if err := events.Publish(ctx, session.store.pub, events.BytesReceived{
UploadID: session.ID(),
URL: s,
```
or in
```go
// Postprocessing starts the postprocessing result collector
func (fs *Decomposedfs) Postprocessing(ch <-chan events.Event) {
// [ ... ]
s, err := session.URL(ctx)
if err != nil {
sublog.Error().Err(err).Msg("could not create url")
continue
}
metrics.UploadSessionsRestarted.Inc()
// restart postprocessing
if err := events.Publish(ctx, fs.stream, events.BytesReceived{
UploadID: session.ID(),
URL: s,
```
So, we do not need to go throught the proxy here.
2025-08-19 14:58:30 +02:00
Michael Barz
2d24c27329
change: adjust default values for the S3 Uploads ( #1224 )
2025-07-14 16:43:43 +02:00
Michael Barz
db5ac0a4e2
change: set better decomposedS3 defaults for multipart upload ( #1200 )
2025-07-10 09:20:39 +02:00
Florian Schade
900d596b65
fix(decomposeds3): enable async-uploads by default ( #686 )
2025-04-17 09:17:53 +02:00
André Duffeck
91fd396c86
Add env var to make the inotify stats frequency configurable
2025-04-15 09:24:55 +02:00
Jörn Friedrich Dreyer
15cb8680ef
change storage users default to posixfs
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2025-03-19 12:21:58 +01:00
Ralf Haferkamp
90328a7ed1
posixfs: Use userid as the foldername for personal space
...
This avoids loosing the user's personal space after renaming the user.
Closes : #192
2025-03-17 10:54:52 +01:00
André Duffeck
916c79e856
Make space aliases configure for the posix driver
2025-03-13 15:35:45 +01:00
André Duffeck
d42034202d
Add option to disable the posix fs watcher
2025-02-13 13:11:49 +01:00
André Duffeck
5b85029813
Add EnableFSRevisions config option
2025-02-13 10:07:17 +01:00
André Duffeck
57fa8eb43c
Switch from ocis/s3ng to decomposed/decomposed_s3 storage drivers
...
ocis/s3ng are still supported for backwards compatibility reasons, but
they need to be configured using the decomposed/decomposed_s3 options.
2025-01-24 11:04:23 +01:00
Jörn Friedrich Dreyer
243ffe81c7
nats cluster name
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2025-01-16 16:14:22 +01:00
Jörn Friedrich Dreyer
db39b8ed3b
use opencloudurl
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2025-01-16 11:13:08 +01:00
Ralf Haferkamp
213e9663a9
Rename go-micro services
2025-01-16 09:45:46 +01:00
Jörn Friedrich Dreyer
b07b5a1149
use plain pkg module
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2025-01-13 16:42:19 +01:00
Jörn Friedrich Dreyer
8e028f17e9
change module name
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2025-01-13 09:58:18 +01:00
jkoberg
4a911ac047
feat(storage-users): remove metadata backend envvar
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2024-09-19 12:29:41 +02:00
André Duffeck
ffe1946686
Fix default posix root and the description of the according config var
...
Fixes https://github.com/owncloud/ocis/issues/9910
2024-09-17 10:33:32 +02:00
André Duffeck
d199e79c71
Set a default debounce delay
2024-09-17 10:33:32 +02:00
André Duffeck
0028013794
Enable async uploads for posixfs
2024-06-25 08:40:50 +02:00
André Duffeck
126b083eaf
Add config var for using the space groups
2024-05-29 12:14:54 +02:00
André Duffeck
8cd39754c7
Add config vars for space path templates
2024-05-29 12:14:54 +02:00
André Duffeck
96645322e7
Configure project spaces layout
2024-05-29 12:14:53 +02:00
André Duffeck
aab219a38f
Initial support for the posixfs
2024-05-29 12:14:53 +02:00
Christian Richter
fe4cd7a901
make code more readable
...
Signed-off-by: Christian Richter <crichter@owncloud.com >
2024-03-19 14:21:21 +01:00
Christian Richter
b5ca297f54
prevent nil pointer
...
Signed-off-by: Christian Richter <crichter@owncloud.com >
2024-03-19 13:56:10 +01:00
Christian Richter
72916dc53c
adapt cors headers
...
Signed-off-by: Christian Richter <crichter@owncloud.com >
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2024-03-19 10:54:58 +01:00
jkoberg
f1a6472a6d
disable multiparts uploads
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2024-03-15 15:59:57 +01:00
Jörn Friedrich Dreyer
5ed57cc09a
Bump reva deps ( #8412 )
...
* bump dependencies
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
* bump reva and add config options
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
---------
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2024-02-21 10:20:36 +01:00
Christian Richter
2269d2cf27
change default for MaxConcurrency
...
Signed-off-by: Christian Richter <crichter@owncloud.com >
2024-01-29 14:22:26 +01:00
jkoberg
cec6ea50eb
remove unused stat cache
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2024-01-24 10:39:32 +01:00
Roman Perekhod and Roman Perekhod
367f1ff9e8
trash-bin cli has been exteneded by the list and restore commands ( #7917 )
...
* trash-bin cli has been exteneded by the list and restore commands
* v4 to v5 changes
---------
Co-authored-by: Roman Perekhod <rperekhod@owncloud.com >
2023-12-19 15:44:28 +01:00
kobergj and Jörn Friedrich Dreyer
dbc50a655b
use different dbs for filemetadata caches
...
Co-authored-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2023-12-14 11:08:10 +01:00
jkoberg
d62cb9d34b
use inmemory cache by default
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2023-12-13 12:49:54 +01:00
jkoberg
ad87ac955a
configure services individually
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2023-12-13 12:49:54 +01:00
jkoberg
bbc4f83f7d
bump dependencies
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2023-12-13 12:49:53 +01:00
jkoberg
003310a2b0
use nats-js cache
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2023-12-13 12:48:27 +01:00
jkoberg
f189b11ba9
default async uploads
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2023-10-05 15:33:42 +02:00
André Duffeck
e8a7872d29
Add default propagator config
2023-07-31 10:26:19 +02:00