mirror of
https://github.com/stoatchat/self-hosted.git
synced 2026-07-22 04:55:33 -04:00
File upload limit, stoat, docker #135
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Murzynejtor44 on GitHub (Feb 12, 2026).
Hi. I couldn't find nothing helpful about changing the file limit upload (one of the reasons for self hosting stoat).
I've tried this (I've seen somwhere, that i have to log in to autumn):
docker exec -u 0 -it 5cd89a52e5b4 /bin/bash
but it returns:
OCI runtime exec failed: exec failed: unable to start container process: exec: "/bin/bash": stat /bin/bash: no such file or directory
and this in the Revolt.toml:
[features.limits.new_user]
Limits imposed on new users
Number of outgoing friend requests permitted at any time
outgoing_friend_requests = 10
Maximum number of owned bots
bots = 2
Message content length
message_length = 300000
Number of attachments that can be included
message_attachments = 15
Maximum number of servers the user can create/join
servers = 50
[features.limits.new_user.file_upload_size_limit]
Maximum file size limits (in bytes)
attachments = 20_000_000_000
avatars = 4_000_000_000
backgrounds = 6_000_000_000
icons = 2_500_000_000
banners = 6_000_000_000
emojis = 500_000_000
[features.limits.default]
Limits imposed on users by default
Number of outgoing friend requests permitted at any time
outgoing_friend_requests = 15
Maximum number of owned bots
bots = 5
Message content length
message_length = 300000
Number of attachments that can be included
message_attachments = 25
Maximum number of servers the user can create/join
servers = 100
[files]
Encryption key for stored files
Generate your own key using
openssl rand -base64 32i wont show encryption key
Quality used for lossy WebP previews (set to 100 for lossless)
webp_quality = 100.0
[files.limit]
Minimum file size (in bytes)
min_file_size = 1
Minimum image resolution
min_resolution = [1, 1]
Maximum MP of images
max_mega_pixels = 3000
Maximum pixel side of an image
max_pixel_side = 10_000_000
[files.preview]
Maximum image resolution
attachments = [12800, 12800]
avatars = [128, 128]
backgrounds = [1280, 720]
icons = [128, 128]
banners = [480, 480]
emojis = [128, 128]
[features.limits.global]
group_size = 1000
message_embeds = 500
message_replies = 500
message_reactions = 200
server_emoji = 100
server_roles = 200
server_channels = 200
How many hours since creation a user is considered new
new_user_hours = 72
Maximum permissible body size in bytes for uploads
(should be greater than any one file upload limit)
body_limit_size = 25_000_000_000
[features.limits.default.file_upload_size_limit]
Maximum file size limits (in bytes)
attachments = 20_000_000_000
avatars = 4_000_000_000
backgrounds = 6_000_000_000
icons = 2_500_000_000
banners = 6_000_000_000
emojis = 500_000_000