jz.bm.chat.max_upload_bytes is now handed to golem15.chat as the total size of one message's attachments, so the server enforces the limit the bootstrap advertises.
29 lines
1.3 KiB
YAML
29 lines
1.3 KiB
YAML
# Defaults for jz.bm, merged under the plugin ID: the application reads them
|
|
# as jz.bm.<key> and can override them in its own config.
|
|
|
|
# Default page size of GET /_bm/api/v1/materials (clamped to 1..100).
|
|
materials_per_page: 20
|
|
# Number of class sessions and deadlines on GET /_bm/api/v1/dashboard.
|
|
dashboard_limit: 5
|
|
# Absolute base URL of the application (https://bm.example.org), used for
|
|
# the calendar feed URL and the course links inside the feed. Empty means
|
|
# the scheme and Host of the request.
|
|
public_url: ""
|
|
|
|
# The student chat (golem15.chat, golem15.chatchannels). Membership is the
|
|
# user group whose code is chat.group; nobody is added to it automatically,
|
|
# members are assigned in the backend. Members of chat.moderator_group may
|
|
# delete other people's messages in channels. Env keys:
|
|
# SUMMER_JZ__BM__CHAT__GROUP, SUMMER_JZ__BM__CHAT__MODERATOR_GROUP,
|
|
# SUMMER_JZ__BM__CHAT__MAX_UPLOAD_BYTES, SUMMER_JZ__BM__CHAT__MAX_EMBEDS.
|
|
chat:
|
|
group: studenci
|
|
moderator_group: moderatorzy
|
|
# Total size of one message's attachments (60 MiB), enforced by
|
|
# golem15.chat when the message is sent (Service.SetMaxMessageBytes) and
|
|
# checked by the student app before upload. It stays under nginx's
|
|
# client_max_body_size 64m so the multipart envelope still fits.
|
|
max_upload_bytes: 62914560
|
|
# Entity embeds (deadline, class, reading) per message.
|
|
max_embeds: 3
|