From 19f194e08cbbb707d204f536ce883338209e5196 Mon Sep 17 00:00:00 2001 From: Sho Sakuma Date: Fri, 24 Jan 2025 06:38:48 +0900 Subject: [PATCH] deps: Bump babyrite v0.14.0 --- babyrite/compose.yaml | 2 +- babyrite/config.toml | 27 +++++++++++++++++++++++---- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/babyrite/compose.yaml b/babyrite/compose.yaml index e3cced9..c0d8a3f 100644 --- a/babyrite/compose.yaml +++ b/babyrite/compose.yaml @@ -1,6 +1,6 @@ services: app: - image: ghcr.io/m1sk9/babyrite:v0.13.19 + image: ghcr.io/m1sk9/babyrite:v0.14.0 env_file: - .env volumes: diff --git a/babyrite/config.toml b/babyrite/config.toml index ca4e674..8f73db4 100644 --- a/babyrite/config.toml +++ b/babyrite/config.toml @@ -1,5 +1,24 @@ -### babyrite configuration ### -logger_format='compact' +### babyrite configuration file ### +# This file is used for babyrite configuration. +# By changing this configuration, you can modify the behavior of babyrite. Please restart babyrite after changing the settings. +# The settings are written in TOML format. To use the configuration file, specify the recursive path to the configuration file in the environment variable "CONFIG_FILE_PATH" injected into the container. +# Note that babyrite will run with default settings if not configured. -[preview] -is_mention=true +# Startup settings (Feature Flags) +## Flags to change the behavior of babyrite. Specify them separated by commas. The default is empty. +## The valid flags are as follows: +## - "json_logging": Outputs logs in JSON format (useful when integrating with log collection tools like Grafana Loki) +feature_flag = "" + +# Mention settings for preview generation (default is enabled) +## Mentions the request sender when generating a preview. +is_mention = true + +# Preview deletion feature (default is enabled) +## Sets whether to enable the deletion of previews. If enabled, a trash can reaction is added to each preview, and pressing the reaction will delete it. +## If disabled, the reaction is not added, and pressing the reaction will not delete the preview. +is_deletable = true + +# Allow NSFW (Not Safe For Work) content (default is disabled) +## Sets whether to allow the generation of messages from channels marked as NSFW. It is strongly recommended to disable this setting on community servers. +is_allow_nsfw = false