2021-01-25 20:08:42 +01:00
---
title: "Administrator's Guide"
date: "2020-12-15T12:01:23-04:00"
section: "guide"
weight: 3
---
## Personal Server configuration
Personal Server settings are stored in `config.json` and is read when the server is launched. The contents are:
| Key | Description | Example |
| ----------- | ----------- | ---
| serverRoot | Root URL of the server | "http://localhost:8000"
| port | Server port | 8000
| dbtype | Type of database. `sqlite3` or `postgres` | "sqlite3"
2021-01-26 20:13:05 +01:00
| dbconfig | Database connection string | postgres://user:pass@localhost/boards?sslmode=disable& connect_timeout=10
2021-01-25 20:08:42 +01:00
| webpath | Path to web files | "./webapp/pack"
| filespath | Path to uploaded files folder | "./files"
| telemetry | Enable health diagnostics telemetry | true
2021-05-18 16:12:51 +02:00
| prometheus_address | Enables prometheus metrics, if it's empty is disabled | ":9092"
2021-01-25 20:08:42 +01:00
| session_expire_time | Session expiration time in seconds | 2592000
| session_refresh_time | Session refresh time in seconds | 18000
2021-01-27 22:08:25 +01:00
| localOnly | Only allow connections from localhost | false
2021-01-25 20:08:42 +01:00
| enableLocalMode | Enable Admin APIs on local Unix port | true
2021-02-01 19:31:06 +01:00
| localModeSocketLocation | Location of local Unix port | "/var/tmp/focalboard_local.socket"
2021-01-25 20:08:42 +01:00
## Resetting passwords
2021-02-01 19:31:06 +01:00
By default, Personal Server exposes admin APIs on a local Unix socket at `/var/tmp/focalboard_local.socket` . This is configurable by the `enableLocalMode` and `localModeSocketLocation` settings in config.json.
2021-01-25 20:08:42 +01:00
2021-02-01 19:31:06 +01:00
To reset a user's password, you can use the following `reset-password.sh` script:
2021-01-25 20:08:42 +01:00
```
#!/bin/bash
if [[ $# < 2 ] ] ; then
echo 'reset-password.sh < username > < new password > '
exit 1
fi
2021-02-01 19:31:06 +01:00
curl --unix-socket /var/tmp/focalboard_local.socket http://localhost/api/v1/admin/users/$1/password -X POST -H 'Content-Type: application/json' -d '{ "password": "'$2'" }'
2021-01-25 20:08:42 +01:00
```
2021-01-27 22:08:25 +01:00
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 side bar.