Paperclip/settings.toml

40 lines
874 B
TOML
Raw Normal View History

2024-05-17 07:59:51 +00:00
name = "Solar Attachments"
maintainer = "SmartSheep Studio"
bind = "0.0.0.0:8443"
grpc_bind = "0.0.0.0:7443"
domain = "usercontent.solsynth.dev"
secret = "LtTjzAGFLshwXhN4ZD4nG5KlMv1MWcsvfv03TSZYnT1VhiAnLIZFTnHUwR0XhGgi"
preferred_destination = "local"
accepts_usage = ["p.avatar", "p.banner", "i.attachment", "m.attachment"]
[debug]
2024-05-20 14:31:55 +00:00
database = false
2024-05-17 07:59:51 +00:00
print_routes = false
2024-06-16 15:32:52 +00:00
[consul]
addr = "127.0.0.1:8500"
2024-05-17 07:59:51 +00:00
[security]
cookie_domain = "localhost"
cookie_samesite = "Lax"
access_token_duration = 300
refresh_token_duration = 2592000
[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_"
[destinations.local]
type = "local"
2024-06-01 14:15:41 +00:00
path = "/uploads"
2024-05-17 07:59:51 +00:00
[destinations.s3]
type = "s3"
bucket = "bucket"
endpoint = "s3.ap-east-1.amazonaws.com"
secret_id = "secret"
secret_key = "secret"
2024-05-20 14:31:55 +00:00
enable_ssl = true