Update README and config

This commit is contained in:
Jesse Wierzbinski 2023-10-17 09:12:53 -10:00
parent a1238222e2
commit 47a53b6990
No known key found for this signature in database
GPG key ID: F9A1E418934E40B0
3 changed files with 99 additions and 0 deletions

View file

@ -16,6 +16,14 @@ export interface ConfigType {
banned_ips: string[];
};
smtp: {
server: string;
port: number;
username: string;
password: string;
tls: boolean;
};
validation: {
max_displayname_size: number;
max_bio_size: number;
@ -35,6 +43,24 @@ export interface ConfigType {
allowed_mime_types: string[];
};
media: {
backend: string;
deduplicate_media: boolean;
conversion: {
convert_images: boolean;
convert_to: string;
};
};
s3: {
endpoint: string;
access_key: string;
secret_access_key: string;
region: string;
bucket_name: string;
public_url: string;
};
defaults: {
visibility: string;
language: string;
@ -42,6 +68,12 @@ export interface ConfigType {
header: string;
};
email: {
send_on_report: boolean;
send_on_suspend: boolean;
send_on_unsuspend: boolean;
};
activitypub: {
use_tombstones: boolean;
reject_activities: string[];
@ -101,6 +133,34 @@ export const configDefaults: ConfigType = {
password: "postgres",
database: "lysand",
},
smtp: {
password: "",
port: 465,
server: "",
tls: true,
username: "",
},
media: {
backend: "local",
deduplicate_media: true,
conversion: {
convert_images: false,
convert_to: "webp",
},
},
email: {
send_on_report: false,
send_on_suspend: false,
send_on_unsuspend: false,
},
s3: {
access_key: "",
bucket_name: "",
endpoint: "",
public_url: "",
region: "",
secret_access_key: "",
},
validation: {
max_displayname_size: 50,
max_bio_size: 6000,