Back to Focalboard

Administrator's Guide

website/site/content/guide/admin/_index.md

8.0.02.2 KB
Original Source

Personal server configuration

Personal server settings are stored in config.json and are read when the server is launched. The contents are:

KeyDescriptionExample
serverRootRoot URL of the serverhttp://localhost:8000
portServer port8000
dbtypeType of database. sqlite3, postgres, or mysqlsqlite3
dbconfigDatabase connection stringpostgres://user:pass@localhost/boards?sslmode=disable&connect_timeout=10
useSSLEnable or disable SSLfalse
webpathPath to web files./webapp/pack
filespathPath to uploaded files folder./files
telemetryEnable health diagnostics telemetrytrue
prometheus_addressEnables Prometheus metrics, if it's empty is disabled:9092
session_expire_timeSession expiration time in seconds2592000
session_refresh_timeSession refresh time in seconds18000
localOnlyOnly allow connections from localhostfalse
enableLocalModeEnable admin APIs on local Unix porttrue
localModeSocketLocationLocation of local Unix port/var/tmp/focalboard_local.socket
enablePublicSharedBoardsEnable publishing boards for public accessfalse

Resetting passwords

By default, personal server exposes admin APIs on a local Unix socket at /var/tmp/focalboard_local.socket. This is configurable using the enableLocalMode and localModeSocketLocation settings in config.json.

Note that if you're using a version of Mattermost Boards up to v7.1, you need to use v1 of the API. From v7.2 onwards, you need to use v2 of the API.

To reset a user's password, you can use the following reset-password.sh script:

#!/bin/bash

if [[ $# < 2 ]] ; then
    echo 'reset-password.sh <username> <new password>'
    exit 1
fi

curl --unix-socket /var/tmp/focalboard_local.socket http://localhost/api/v2/admin/users/$1/password -X POST -H 'Content-Type: application/json' -d '{ "password": "'$2'" }'

After resetting a user's password (e.g. if they forgot it), direct them to change it from the user menu, by clicking on their username at the top of the sidebar.