Update docker base config
This commit is contained in:
parent
4225b55fe3
commit
bc166e7975
2 changed files with 13 additions and 1 deletions
|
@ -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 a new issue