-
Notifications
You must be signed in to change notification settings - Fork 6
/
config.example.yml
78 lines (70 loc) · 1.94 KB
/
config.example.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Override the domain thats is used in the blobs "url" field
# By default it uses the domain the incoming HTTP request was made on
publicDomain: ""
databasePath: data/sqlite.db
dashboard:
# enable or disable the admin dashboard
enabled: true
# admin username
username: admin
# if password is left blank it will be generated each time the app starts
# password: ""
discovery:
# find files by querying nostr relays
nostr:
enabled: true
relays:
- wss://nostrue.com
- wss://relay.damus.io
- wss://nostr.wine
- wss://nos.lol
- wss://nostr-pub.wellorder.net
# find files by asking upstream CDNs
# NOTE: do not set this to your own server, it will create an infinite loop
upstream:
enabled: true
domains:
- https://cdn.satellite.earth
storage:
# local or s3
backend: local
local:
dir: ./data/blobs
# s3:
# endpoint: https://s3.endpoint.com
# bucket: blossom
# accessKey: xxxxxxxx
# secretKey: xxxxxxxxx
# If this is set the server will redirect clients when loading blobs
# publicURL: https://s3.region.example.com/
# rules are checked in descending order. if a blob matches a rule it is kept
# "type" (required) the type of the blob, "*" can be used to match any type
# "expiration" (required) time passed since last accessed
# "pubkeys" (optional) a list of owners
# any blobs not matching the rules will be removed
rules:
# mime type of blob
- type: text/*
# time since last accessed
expiration: 1 month
- type: "image/*"
expiration: 1 week
- type: "video/*"
expiration: 5 days
- type: "model/*"
expiration: 1 week
- type: "*"
expiration: 2 days
upload:
# enable / disable uploads
enabled: true
# require auth to upload
requireAuth: true
# only check rules that include "pubkeys"
requirePubkeyInRule: false
list:
requireAuth: false
allowListOthers: true
tor:
enabled: false
proxy: ""