WIP
This commit is contained in:
parent
24691276a9
commit
49dacb2418
1 changed files with 80 additions and 0 deletions
|
@ -62,6 +62,86 @@ fn read_default_yml() -> Result<HashMap<String, Yaml>, ReadYamlConfigError> {
|
||||||
Ok(res)
|
Ok(res)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct Meta {
|
||||||
|
name: Option<String>,
|
||||||
|
description: Option<String>,
|
||||||
|
maintainer_name: Option<String>,
|
||||||
|
maintainer_email: Option<String>,
|
||||||
|
disable_registration: bool,
|
||||||
|
disable_local_timeline: bool,
|
||||||
|
disable_global_timeline: bool,
|
||||||
|
banner_url: Option<String>,
|
||||||
|
error_image_url: Option<String>,
|
||||||
|
icon_url: Option<String>,
|
||||||
|
cache_remote_files: bool,
|
||||||
|
enable_recaptcha: bool,
|
||||||
|
recaptcha_site_key: Option<String>,
|
||||||
|
recaptcha_secret_key: Option<String>,
|
||||||
|
local_drive_capacity_mb: u64,
|
||||||
|
remote_drive_capacity_mb: u64,
|
||||||
|
summaly_proxy: Option<String>,
|
||||||
|
enable_email: bool,
|
||||||
|
email: Option<String>,
|
||||||
|
smtp_secure: bool,
|
||||||
|
smtp_host: Option<String>,
|
||||||
|
smtp_port: Option<u16>,
|
||||||
|
smtp_user: Option<String>,
|
||||||
|
smtp_pass: Option<String>,
|
||||||
|
enable_service_worker: bool,
|
||||||
|
sw_public_key: Option<String>,
|
||||||
|
sw_private_key: Option<String>,
|
||||||
|
pinned_users: Vec<String>,
|
||||||
|
tos_url: Option<String>,
|
||||||
|
repository_url: String,
|
||||||
|
feedback_url: Option<String>,
|
||||||
|
use_object_storage: bool,
|
||||||
|
object_storage_bucket: Option<String>,
|
||||||
|
object_storage_prefix: Option<String>,
|
||||||
|
object_storage_base_url: Option<String>,
|
||||||
|
object_storage_endpoint: Option<String>,
|
||||||
|
object_storage_region: Option<String>,
|
||||||
|
object_storage_access_key: Option<String>,
|
||||||
|
object_storage_secret_key: Option<String>,
|
||||||
|
object_storage_port: u16,
|
||||||
|
object_storage_use_ssl: bool,
|
||||||
|
object_storage_set_public_read: bool,
|
||||||
|
object_storage_s3_force_path_style: bool,
|
||||||
|
proxy_account_id: String,
|
||||||
|
object_storage_use_proxy: bool,
|
||||||
|
enable_hcaptcha: bool,
|
||||||
|
hcaptcha_site_key: Option<String>,
|
||||||
|
hcaptcha_secret_key: Option<String>,
|
||||||
|
background_image_url: Option<String>,
|
||||||
|
logo_image_url: Option<String>,
|
||||||
|
pinned_clip_id: Option<String>,
|
||||||
|
allowed_hosts: Vec<String>,
|
||||||
|
secure_mode: bool,
|
||||||
|
private_mode: bool,
|
||||||
|
deepl_auth_key: Option<String>,
|
||||||
|
deepl_is_pro: bool,
|
||||||
|
email_required_for_signup: bool,
|
||||||
|
theme_color: Option<String>,
|
||||||
|
default_light_theme: Option<String>,
|
||||||
|
default_dark_theme: Option<String>,
|
||||||
|
enable_ip_logging: bool,
|
||||||
|
enable_active_email_validation: bool,
|
||||||
|
custom_motd: Vec<String>,
|
||||||
|
custom_splash_icons: Vec<String>,
|
||||||
|
disable_recommended_timeline: bool,
|
||||||
|
recommended_instances: Vec<String>,
|
||||||
|
enable_guest_timeline: bool,
|
||||||
|
default_reaction: String,
|
||||||
|
libre_translate_api_url: Option<String>,
|
||||||
|
libre_translate_api_key: Option<String>,
|
||||||
|
enable_server_machine_stats: bool,
|
||||||
|
enable_identicon_generation: bool,
|
||||||
|
donation_link: Option<String>,
|
||||||
|
mark_local_files_nsfw_by_default: bool,
|
||||||
|
antenna_limit: u8,
|
||||||
|
// more_urls: jsonb
|
||||||
|
// experimental_features: jsonb
|
||||||
|
}
|
||||||
|
|
||||||
async fn read_meta_table(
|
async fn read_meta_table(
|
||||||
host: &str,
|
host: &str,
|
||||||
port: u16,
|
port: u16,
|
||||||
|
|
Loading…
Reference in a new issue