Paperclip/settings.toml

44 lines
768 B
TOML
Raw Normal View History

2024-06-22 10:09:41 +00:00
id = "paperclip01"
2024-05-17 07:59:51 +00:00
bind = "0.0.0.0:8443"
grpc_bind = "0.0.0.0:7443"
2024-07-28 16:53:40 +00:00
[workers]
files_deletion = 4
files_analyze = 4
2024-05-17 07:59:51 +00:00
[debug]
database = true
2024-05-17 07:59:51 +00:00
print_routes = false
2024-07-14 16:47:14 +00:00
[dealer]
addr = "127.0.0.1:7442"
2024-06-16 15:32:52 +00:00
2024-05-17 07:59:51 +00:00
[security]
cookie_domain = "localhost"
cookie_samesite = "Lax"
access_token_duration = 300
refresh_token_duration = 2592000
2024-08-20 09:08:40 +00:00
[performance]
2024-08-20 11:17:43 +00:00
file_chunk_size = 26214400
2024-08-20 09:08:40 +00:00
2024-05-17 07:59:51 +00:00
[database]
2024-06-01 14:15:41 +00:00
dsn = "host=localhost user=postgres password=password dbname=hy_paperclip port=5432 sslmode=disable"
2024-05-17 07:59:51 +00:00
prefix = "paperclip_"
2024-08-18 06:09:52 +00:00
[pools.aliases]
"p.avatar" = "avatar"
"p.banner" = "avatar"
"i.attachment" = "interactive"
"m.attachment" = "messaging"
"sticker" = "sticker"
2024-07-28 13:03:56 +00:00
[destinations.temporary]
2024-05-17 07:59:51 +00:00
type = "local"
2024-06-29 13:16:11 +00:00
path = "uploads"
2024-05-17 07:59:51 +00:00
2024-07-28 13:03:56 +00:00
[destinations.permanent]
2024-08-02 13:38:47 +00:00
type = "local"
path = "uploads/permanent"