Skip to content

Configuration

.env

DB_HOST - database host (usually 127.0.0.1)
DB_NAME - database name
DB_USER - database user
DB_PASS - database password
DB_PORT - database port (usually 3306)
ADMIN_PASSWORD - password to access admin panel
APP_SECRET - application secret, generate one with this command: python3 -c 'import secrets; print(secrets.token_hex())'

config.json

Note

Configuration is usually managed through the Admin panel, not editing the config file manually

{
    "instance": {
        "title": "Instance title",
        "description": "Instance description",
        "image": "Favicon, usually /static/icons/favicon/android-chrome-512x512.png",
        "fullBaseUrl": "Base URL like https://example.com",
        "rules": "Instance rules, Markdown supported"
    },
    "accessibility": {
        "font": "Global font, usually 'default' (Rubik), default|system|atkinson",
        "userway": {
            "enabled": false|true,
            "account": "UserWay account key"
        }
    },
    "style": {
        "accentLight": "color code for light theme accent",
        "accentDark": "color code for dark theme accent",
        "bgLight": "#ffffff",
        "bgDark": "#202020",
        "navStyle": "nav link style, underline|pills",
        "tintColors": false|true,
        "infoBoxLayout": "layout for the box with instance info and rules, row|column",
        "homepageLayout": "Layout for the homepage, catask|retrospring",
        "navIcons": true|false,
        "navIconsOnly": false|true
    },
    "antispam": {
        "type": "basic|recaptcha|turnstile|frc",
        "enabled": true|false,
        "recaptcha": {
            "sitekey": "recaptcha site key",
            "secretkey": "recaptcha secret key"
        },
        "turnstile": {
            "sitekey": "turnstile site key",
            "secretkey": "turnstile secret key"
        },
        "frc": {
            "sitekey": "friendly captcha site key",
            "apikey": "friendly captcha api key"
        }
    },
    "ntfy": {
        "enabled": false|true,
        "host": "https://ntfy.sh",
        "user": "username",
        "pass": "password",
        "topic": "topic"
    },
    "trimContentAfter": "150",
    "charLimit": "512",
    "anonName": "Anonymous",
    "lockInbox": false|true,
    "allowAnonQuestions": true|false,
    "showQuestionCount": true|false,
    "noDeleteConfirm": false|true
}