mirror of
https://github.com/multipleof4/ntfy.git
synced 2026-10-16 16:37:55 +00:00
Tags
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
|||||||
"heckel.io/ntfy/v2/log"
|
"heckel.io/ntfy/v2/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
const tagFileBackend = "file_backend"
|
const tagFileBackend = "attachment_file"
|
||||||
|
|
||||||
type fileBackend struct {
|
type fileBackend struct {
|
||||||
dir string
|
dir string
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
tagS3Backend = "s3_backend"
|
tagS3Backend = "attachment_s3"
|
||||||
deleteBatchSize = 1000
|
deleteBatchSize = 1000
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -15,7 +15,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
tagStore = "attachment_cache"
|
tagStore = "attachment_store"
|
||||||
syncInterval = 15 * time.Minute // How often to run the background sync loop
|
syncInterval = 15 * time.Minute // How often to run the background sync loop
|
||||||
orphanGracePeriod = time.Hour // Don't delete orphaned objects younger than this to avoid races with in-flight uploads
|
orphanGracePeriod = time.Hour // Don't delete orphaned objects younger than this to avoid races with in-flight uploads
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user