From 057bd4b4216595d8315630c980505fd898a587fc Mon Sep 17 00:00:00 2001 From: Tagada <36127788+Tagadda@users.noreply.github.com> Date: Mon, 10 Jan 2022 23:02:13 +0100 Subject: [PATCH] Add config_panel.toml --- conf/.env.production.sample | 4 +- config_panel.toml | 74 +++++++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+), 2 deletions(-) create mode 100644 config_panel.toml diff --git a/conf/.env.production.sample b/conf/.env.production.sample index af1f235..d15d443 100644 --- a/conf/.env.production.sample +++ b/conf/.env.production.sample @@ -277,8 +277,8 @@ MAX_POLL_OPTION_CHARS=100 # Maximum image and video/audio upload sizes # Units are in bytes # 1048576 bytes equals 1 megabyte -# MAX_IMAGE_SIZE=8388608 -# MAX_VIDEO_SIZE=41943040 +MAX_IMAGE_SIZE=8388608 +MAX_VIDEO_SIZE=41943040 # Maximum search results to display # Only relevant when elasticsearch is installed diff --git a/config_panel.toml b/config_panel.toml new file mode 100644 index 0000000..679658f --- /dev/null +++ b/config_panel.toml @@ -0,0 +1,74 @@ +version = "1.0" + +[main] +name.en = "Main configuration" +services = ["__APP__-web", "__APP__-sidekiq", "__APP__-streaming"] + + [main.customization] + name.en = "Customization" + + [main.customization.max_toot_chars] + ask.en = "Maximum allowed character count in a toot" + type = "number" + bind = ":/var/www/__APP__/.env.production" + example = 500 + + [main.customization.max_pinned_toots] + ask = "Maximum number of pinned posts" + type = "number" + example = "5" + bind = ":/var/www/__APP__/.env.production" + + [main.customization.max_bio_chars] + ask = "Maximum allowed bio characters" + type = "number" + accept = "500" + bind = ":/var/www/__APP__/.env.production" + + [main.customization.max_profile_fields] + ask = "Maximim number of profile fields allowed" + type = "number" + accept = "4" + bind = ":/var/www/__APP__/.env.production" + + [main.customization.max_display_name_chars] + ask = "Maximum allowed bio characters" + type = "number" + accept = "30" + bind = ":/var/www/__APP__/.env.production" + + [main.customization.max_poll_options] + ask = "Maximum allowed poll options" + type = "number" + accept = "5" + bind = ":/var/www/__APP__/.env.production" + + [main.customization.max_poll_option_chars] + ask = "Maximum allowed poll option characters" + type = "number" + accept = "100" + bind = ":/var/www/__APP__/.env.production" + + [main.customization.max_image_size] + ask = "Maximum image upload size, in bytes" + type = "number" + accept = "8388608" + bind = ":/var/www/__APP__/.env.production" + + [main.customization.max_video_size] + ask = "Maximum video and audio upload sizes, in bytes" + type = "number" + accept = "41943040" + bind = ":/var/www/__APP__/.env.production" + + [main.customization.max_emoji_size] + ask = "Maximum custom emoji file sizes" + type = "number" + accept = "51200" + bind = ":/var/www/__APP__/.env.production" + + [main.customization.max_remote_emoji_size] + ask = "Maximum remote custom emoji file sizes" + type = "number" + accept = "204800" + bind = ":/var/www/__APP__/.env.production"