updating schema and example config
This commit is contained in:
@@ -11,15 +11,21 @@
|
|||||||
"adminmultiplier": 3.5,
|
"adminmultiplier": 3.5,
|
||||||
"upload_limit": 300,
|
"upload_limit": 300,
|
||||||
"ignored": [
|
"ignored": [
|
||||||
"example.net",
|
"example.net",
|
||||||
"example.org"
|
"example.org"
|
||||||
],
|
],
|
||||||
"invite_secret": "YOUR_SECRET_HERE",
|
"invite_secret": "YOUR_SECRET_HERE",
|
||||||
"hide_comments_from_public": false,
|
"hide_comments_from_public": false,
|
||||||
"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,50 +108,54 @@
|
|||||||
"memes": "/memes"
|
"memes": "/memes"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"clients": [{
|
"clients": [
|
||||||
"type": "tg",
|
{
|
||||||
"enabled": false,
|
"type": "tg",
|
||||||
"token": "",
|
"enabled": false,
|
||||||
"pollrate": 1001
|
"token": "",
|
||||||
},
|
"pollrate": 1001
|
||||||
{
|
},
|
||||||
"type": "matrix",
|
{
|
||||||
"enabled": false,
|
"type": "matrix",
|
||||||
"baseUrl": "https://matrix.org",
|
"enabled": false,
|
||||||
"token": "",
|
"baseUrl": "https://matrix.org",
|
||||||
"userId": "@user:matrix.org",
|
"token": "",
|
||||||
"channels": [],
|
"userId": "@user:matrix.org",
|
||||||
"upload_channel_id": "",
|
"channels": [],
|
||||||
"notification_channel_id": ""
|
"upload_channel_id": "",
|
||||||
},
|
"notification_channel_id": ""
|
||||||
{
|
},
|
||||||
"type": "irc",
|
{
|
||||||
"enabled": false,
|
"type": "irc",
|
||||||
"network": "example",
|
"enabled": false,
|
||||||
"host": "irc.example.net",
|
"network": "example",
|
||||||
"port": 6697,
|
"host": "irc.example.net",
|
||||||
"ssl": true,
|
"port": 6697,
|
||||||
"selfSigned": true,
|
"ssl": true,
|
||||||
"sasl": false,
|
"selfSigned": true,
|
||||||
"nickname": "bot",
|
"sasl": false,
|
||||||
"username": "bot",
|
"nickname": "bot",
|
||||||
"password": "",
|
"username": "bot",
|
||||||
"realname": "bot",
|
"password": "",
|
||||||
"channels": [
|
"realname": "bot",
|
||||||
"#example"
|
"channels": [
|
||||||
]
|
"#example"
|
||||||
}],
|
]
|
||||||
"sql": {
|
}
|
||||||
"host": "localhost",
|
],
|
||||||
"port": 5432,
|
"sql": {
|
||||||
"user": "db_user",
|
"host": "localhost",
|
||||||
"password": "db_password",
|
"port": 5432,
|
||||||
"database": "db_name",
|
"user": "f0ckm",
|
||||||
"multipleStatements": true,
|
"password": "f0ckm",
|
||||||
"max": 50
|
"database": "f0ckm",
|
||||||
},
|
"multipleStatements": true,
|
||||||
"admins": [{}],
|
"max": 50
|
||||||
"mimes": {
|
},
|
||||||
|
"admins": [
|
||||||
|
{}
|
||||||
|
],
|
||||||
|
"mimes": {
|
||||||
"image/png": "png",
|
"image/png": "png",
|
||||||
"video/webm": "webm",
|
"video/webm": "webm",
|
||||||
"image/gif": "gif",
|
"image/gif": "gif",
|
||||||
@@ -170,16 +178,16 @@
|
|||||||
"application/x-shockwave-flash": "swf",
|
"application/x-shockwave-flash": "swf",
|
||||||
"application/vnd.adobe.flash.movie": "swf",
|
"application/vnd.adobe.flash.movie": "swf",
|
||||||
"application/pdf": "pdf"
|
"application/pdf": "pdf"
|
||||||
},
|
},
|
||||||
"apis": {},
|
"apis": {},
|
||||||
"smtp": {
|
"smtp": {
|
||||||
"enabled": false,
|
"enabled": false,
|
||||||
"host": "smtp.example.com",
|
"host": "smtp.example.com",
|
||||||
"port": 465,
|
"port": 465,
|
||||||
"secure": true,
|
"secure": true,
|
||||||
"user": "smtp_user",
|
"user": "smtp_user",
|
||||||
"password": "smtp_password",
|
"password": "smtp_password",
|
||||||
"from": "admin@example.com",
|
"from": "admin@example.com",
|
||||||
"mail_reset_password": false
|
"mail_reset_password": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user