mirror of
https://github.com/maubot/maubot.git
synced 2024-10-01 01:06:10 -04:00
Update docker base config
This commit is contained in:
parent
4225b55fe3
commit
bc166e7975
@ -5,6 +5,18 @@
|
||||
# Postgres: postgres://username:password@hostname/dbname
|
||||
database: sqlite:////data/maubot.db
|
||||
|
||||
# Database for encryption data.
|
||||
crypto_database:
|
||||
# Type of database. Either "default", "pickle" or "postgres".
|
||||
# When set to default, using SQLite as the main database will use pickle as the crypto database
|
||||
# and using Postgres as the main database will use the same one as the crypto database.
|
||||
#
|
||||
# When using pickle, individual crypto databases are stored in the pickle_dir directory.
|
||||
# When using non-default postgres, postgres_uri is used to connect to postgres.
|
||||
type: default
|
||||
postgres_uri: postgres://username:password@hostname/dbname
|
||||
pickle_dir: /data/crypto
|
||||
|
||||
plugin_directories:
|
||||
# The directory where uploaded new plugins should be stored.
|
||||
upload: /data/plugins
|
||||
|
@ -6,7 +6,7 @@ function fixperms {
|
||||
|
||||
cd /opt/maubot
|
||||
|
||||
mkdir -p /var/log/maubot /data/plugins /data/trash /data/dbs
|
||||
mkdir -p /var/log/maubot /data/plugins /data/trash /data/dbs /data/crypto
|
||||
|
||||
if [ ! -f /data/config.yaml ]; then
|
||||
cp docker/example-config.yaml /data/config.yaml
|
||||
|
Loading…
Reference in New Issue
Block a user