forked from jmug/stoatchat
docs: update environment variables [skip ci]
This commit is contained in:
25
.env.example
25
.env.example
@@ -1,5 +1,7 @@
|
|||||||
# MongoDB URI
|
# MongoDB URI
|
||||||
MONGODB=mongodb://localhost
|
MONGODB=mongodb://localhost
|
||||||
|
AUTUMN_MONGO_URI=mongodb://database
|
||||||
|
REDIS_URI=redis://localhost/
|
||||||
|
|
||||||
# URL to where the Revolt app is publicly accessible
|
# URL to where the Revolt app is publicly accessible
|
||||||
REVOLT_APP_URL=http://local.revolt.chat:5000
|
REVOLT_APP_URL=http://local.revolt.chat:5000
|
||||||
@@ -80,3 +82,26 @@ REVOLT_VAPID_PUBLIC_KEY=BGcvgR-i2z4IQ5Mw841vJvkLjt8wY-FjmWrw83jOLCY52qcGZS0OF7nf
|
|||||||
##
|
##
|
||||||
|
|
||||||
# VOSO_MANAGE_TOKEN=CHANGEME
|
# VOSO_MANAGE_TOKEN=CHANGEME
|
||||||
|
|
||||||
|
|
||||||
|
##
|
||||||
|
## Autumn configuration
|
||||||
|
##
|
||||||
|
|
||||||
|
# S3 Region
|
||||||
|
AUTUMN_S3_REGION=minio
|
||||||
|
|
||||||
|
# S3 Endpoint
|
||||||
|
AUTUMN_S3_ENDPOINT=http://minio:9000
|
||||||
|
|
||||||
|
# MinIO Root User
|
||||||
|
MINIO_ROOT_USER=minioautumn
|
||||||
|
|
||||||
|
# MinIO Root Password
|
||||||
|
MINIO_ROOT_PASSWORD=minioautumn
|
||||||
|
|
||||||
|
# AWS Access Key ID
|
||||||
|
AWS_ACCESS_KEY_ID=minioautumn
|
||||||
|
|
||||||
|
# AWS Secret Key
|
||||||
|
AWS_SECRET_ACCESS_KEY=minioautumn
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ If you want to run the API and event servers:
|
|||||||
```bash
|
```bash
|
||||||
# create environment file (will be deprecated in future)
|
# create environment file (will be deprecated in future)
|
||||||
cp .env.example .env
|
cp .env.example .env
|
||||||
|
|
||||||
# (optionally) copy the default configuration file
|
# (optionally) copy the default configuration file
|
||||||
cp crates/core/config/Revolt.toml Revolt.toml
|
cp crates/core/config/Revolt.toml Revolt.toml
|
||||||
# configure as necessary...
|
# configure as necessary...
|
||||||
|
|||||||
@@ -43,8 +43,8 @@ services:
|
|||||||
env_file: .env
|
env_file: .env
|
||||||
entrypoint: >
|
entrypoint: >
|
||||||
/bin/sh -c "
|
/bin/sh -c "
|
||||||
while ! curl -s --output /dev/null --connect-timeout 1 http://minio:9000; do echo 'Waiting minio...' && sleep 0.1; done;
|
/usr/bin/mc config host add minio http://minio:9000 $MINIO_ROOT_USER $MINIO_ROOT_PASSWORD;
|
||||||
/usr/bin/mc alias set minio http://minio:9000 $MINIO_ROOT_USER $MINIO_ROOT_PASSWORD;
|
while ! /usr/bin/mc ready minio; do echo 'Waiting minio...' && sleep 1; done;
|
||||||
/usr/bin/mc mb minio/attachments;
|
/usr/bin/mc mb minio/attachments;
|
||||||
/usr/bin/mc mb minio/avatars;
|
/usr/bin/mc mb minio/avatars;
|
||||||
/usr/bin/mc mb minio/backgrounds;
|
/usr/bin/mc mb minio/backgrounds;
|
||||||
@@ -53,15 +53,13 @@ services:
|
|||||||
/usr/bin/mc mb minio/emojis;
|
/usr/bin/mc mb minio/emojis;
|
||||||
exit 0;
|
exit 0;
|
||||||
"
|
"
|
||||||
|
|
||||||
# File server (autumn)
|
# File server (autumn)
|
||||||
autumn:
|
autumn:
|
||||||
image: ghcr.io/revoltchat/autumn:1.1.5
|
image: ghcr.io/revoltchat/autumn:1.1.5
|
||||||
env_file: .env
|
env_file: .env
|
||||||
depends_on:
|
depends_on:
|
||||||
- database
|
|
||||||
- createbuckets
|
- createbuckets
|
||||||
environment:
|
|
||||||
- AUTUMN_MONGO_URI=mongodb://database
|
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
restart: always
|
restart: always
|
||||||
|
|||||||
Reference in New Issue
Block a user