updating schema and example config

This commit is contained in:
2026-05-15 14:22:41 +02:00
parent b43268ddc6
commit f4faffd4de
2 changed files with 78 additions and 68 deletions

View File

@@ -19,7 +19,13 @@
"timezone": "UTC", "timezone": "UTC",
"development": true "development": true
}, },
"allowedModes": [ "sfw", "nsfw", "untagged", "all", "nsfl" ], "allowedModes": [
"sfw",
"nsfw",
"untagged",
"all",
"nsfl"
],
"enable_pdf": false, "enable_pdf": false,
"enable_nsfl": false, "enable_nsfl": false,
"nsfl_tag_id": 4, "nsfl_tag_id": 4,
@@ -29,7 +35,9 @@
"video" "video"
], ],
"nsfp": [ "nsfp": [
2,3,4 2,
3,
4
], ],
"websrv": { "websrv": {
"port": "1337", "port": "1337",
@@ -40,16 +48,16 @@
"background": true, "background": true,
"log_user_ips": false, "log_user_ips": false,
"hash_user_ips": true, "hash_user_ips": true,
"description": "Example Description", "description": "Example Description",
"themes": [ "amoled" ], "themes": [
"amoled"
],
"theme": "amoled", "theme": "amoled",
"default_layout": "legacy", "default_layout": "legacy",
"custom_favicon": "/s/img/favicon.gif", "custom_favicon": "/s/img/favicon.gif",
"custom_brand_image": [], "custom_brand_image": [],
"show_koepfe": false, "show_koepfe": false,
"koepfe": [], "koepfe": [],
"enable_global_chat": true, "enable_global_chat": true,
"enable_danmaku": true, "enable_danmaku": true,
"private_messages": true, "private_messages": true,
@@ -61,7 +69,6 @@
"enable_cleanup": false, "enable_cleanup": false,
"enable_data_export": true, "enable_data_export": true,
"cleanup_timeframe_days": 30, "cleanup_timeframe_days": 30,
"web_url_upload": true, "web_url_upload": true,
"enable_youtube_upload": true, "enable_youtube_upload": true,
"web_meta_extraction": true, "web_meta_extraction": true,
@@ -75,7 +82,6 @@
"giphy.com" "giphy.com"
], ],
"show_mime_picker": true, "show_mime_picker": true,
"embed_youtube_in_comments": true, "embed_youtube_in_comments": true,
"show_content_warning": true, "show_content_warning": true,
"default_comment_display_mode": 1, "default_comment_display_mode": 1,
@@ -90,12 +96,10 @@
"user_alternative_infobox": false, "user_alternative_infobox": false,
"enable_swf": false, "enable_swf": false,
"swf_thumb": "/s/img/swf.png", "swf_thumb": "/s/img/swf.png",
"open_registration": true, "open_registration": true,
"open_registration_web_toggle": false, "open_registration_web_toggle": false,
"private_society": false, "private_society": false,
"private_society_gate": "cloudflare", "private_society_gate": "cloudflare",
"paths": { "paths": {
"images": "/b", "images": "/b",
"thumbnails": "/t", "thumbnails": "/t",
@@ -104,7 +108,8 @@
"memes": "/memes" "memes": "/memes"
} }
}, },
"clients": [{ "clients": [
{
"type": "tg", "type": "tg",
"enabled": false, "enabled": false,
"token": "", "token": "",
@@ -136,17 +141,20 @@
"channels": [ "channels": [
"#example" "#example"
] ]
}], }
],
"sql": { "sql": {
"host": "localhost", "host": "localhost",
"port": 5432, "port": 5432,
"user": "db_user", "user": "f0ckm",
"password": "db_password", "password": "f0ckm",
"database": "db_name", "database": "f0ckm",
"multipleStatements": true, "multipleStatements": true,
"max": 50 "max": 50
}, },
"admins": [{}], "admins": [
{}
],
"mimes": { "mimes": {
"image/png": "png", "image/png": "png",
"video/webm": "webm", "video/webm": "webm",

View File

@@ -2700,6 +2700,8 @@ GRANT ALL ON SCHEMA public TO PUBLIC;
-- PostgreSQL database dump complete -- PostgreSQL database dump complete
-- --
SET search_path TO public;
-- Migration to add user_ips table for historical IP logging -- Migration to add user_ips table for historical IP logging
CREATE TABLE IF NOT EXISTS user_ips ( CREATE TABLE IF NOT EXISTS user_ips (
id SERIAL PRIMARY KEY, id SERIAL PRIMARY KEY,