correct default database path to `/var/lib/conduwuit`
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
81d2078cdb
commit
c64a507691
|
@ -60,8 +60,9 @@
|
||||||
|
|
||||||
### Database configuration
|
### Database configuration
|
||||||
|
|
||||||
# This is the only directory where conduwuit will save its data, including media
|
# This is the only directory where conduwuit will save its data, including media.
|
||||||
database_path = "/var/lib/matrix-conduit/"
|
# Note: this was previously "/var/lib/matrix-conduit"
|
||||||
|
database_path = "/var/lib/conduwuit"
|
||||||
|
|
||||||
# Database backend: Only rocksdb and sqlite are supported. Please note that sqlite
|
# Database backend: Only rocksdb and sqlite are supported. Please note that sqlite
|
||||||
# will perform significantly worse than rocksdb as it is not intended to be used the
|
# will perform significantly worse than rocksdb as it is not intended to be used the
|
||||||
|
|
|
@ -25,6 +25,9 @@ case "$1" in
|
||||||
# and permissions for the config.
|
# and permissions for the config.
|
||||||
mkdir -v -p "$CONDUWUIT_DATABASE_PATH"
|
mkdir -v -p "$CONDUWUIT_DATABASE_PATH"
|
||||||
|
|
||||||
|
# symlink the previous location for compatibility
|
||||||
|
ln -s -v "$CONDUWUIT_DATABASE_PATH" "/var/lib/matrix-conduit"
|
||||||
|
|
||||||
chown -v conduwuit:conduwuit -R "$CONDUWUIT_DATABASE_PATH"
|
chown -v conduwuit:conduwuit -R "$CONDUWUIT_DATABASE_PATH"
|
||||||
chown -v conduwuit:conduwuit -R "$CONDUWUIT_CONFIG_PATH"
|
chown -v conduwuit:conduwuit -R "$CONDUWUIT_CONFIG_PATH"
|
||||||
chown -v conduwuit:conduwuit -R "$CONDUWUIT_CONFIG_FILE"
|
chown -v conduwuit:conduwuit -R "$CONDUWUIT_CONFIG_FILE"
|
||||||
|
|
|
@ -3,7 +3,7 @@ version: '2.4' # uses '2.4' for cpuset
|
||||||
|
|
||||||
services:
|
services:
|
||||||
homeserver:
|
homeserver:
|
||||||
### If you already built the Conduit image with 'docker build' or want to use the Docker Hub image,
|
### If you already built the conduduwit image with 'docker build' or want to use the Docker Hub image,
|
||||||
### then you are ready to go.
|
### then you are ready to go.
|
||||||
image: girlbossceo/conduwuit:latest
|
image: girlbossceo/conduwuit:latest
|
||||||
### If you want to build a fresh image from the sources, then comment the image line and uncomment the
|
### If you want to build a fresh image from the sources, then comment the image line and uncomment the
|
||||||
|
@ -18,13 +18,13 @@ services:
|
||||||
# GIT_REF: origin/master
|
# GIT_REF: origin/master
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- db:/var/lib/matrix-conduit
|
- db:/var/lib/conduwuit
|
||||||
#- ./conduwuit.toml:/etc/conduit.toml
|
#- ./conduwuit.toml:/etc/conduit.toml
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
environment:
|
environment:
|
||||||
CONDUIT_SERVER_NAME: your.server.name # EDIT THIS
|
CONDUIT_SERVER_NAME: your.server.name # EDIT THIS
|
||||||
CONDUIT_DATABASE_PATH: /var/lib/matrix-conduit
|
CONDUIT_DATABASE_PATH: /var/lib/conduwuit
|
||||||
CONDUIT_DATABASE_BACKEND: rocksdb
|
CONDUIT_DATABASE_BACKEND: rocksdb
|
||||||
CONDUIT_PORT: 6167
|
CONDUIT_PORT: 6167
|
||||||
CONDUIT_MAX_REQUEST_SIZE: 20_000_000 # in bytes, ~20 MB
|
CONDUIT_MAX_REQUEST_SIZE: 20_000_000 # in bytes, ~20 MB
|
||||||
|
|
|
@ -20,11 +20,11 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- 8448:6167
|
- 8448:6167
|
||||||
volumes:
|
volumes:
|
||||||
- db:/var/lib/matrix-conduit
|
- db:/var/lib/conduwuit
|
||||||
#- ./conduwuit.toml:/etc/conduit.toml
|
#- ./conduwuit.toml:/etc/conduit.toml
|
||||||
environment:
|
environment:
|
||||||
CONDUIT_SERVER_NAME: your.server.name # EDIT THIS
|
CONDUIT_SERVER_NAME: your.server.name # EDIT THIS
|
||||||
CONDUIT_DATABASE_PATH: /var/lib/matrix-conduit
|
CONDUIT_DATABASE_PATH: /var/lib/conduwuit
|
||||||
CONDUIT_DATABASE_BACKEND: rocksdb
|
CONDUIT_DATABASE_BACKEND: rocksdb
|
||||||
CONDUIT_PORT: 6167
|
CONDUIT_PORT: 6167
|
||||||
CONDUIT_MAX_REQUEST_SIZE: 20_000_000 # in bytes, ~20 MB
|
CONDUIT_MAX_REQUEST_SIZE: 20_000_000 # in bytes, ~20 MB
|
||||||
|
|
Loading…
Reference in New Issue