Skip to content

File upload limit, stoat, docker #189

@Murzynejtor44

Description

@Murzynejtor44

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 32`
i 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    waiting-on-upstreamIssue needs work upstream that is out of scope for self-hosted repo

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions