mirror of
https://github.com/Thumbscrew/matrix-homeserver-docker-compose.git
synced 2025-01-18 17:45:46 +00:00
fix mistake with server name when generating homeserver.yaml
add step for setting public_baseurl in homeserver.yaml
This commit is contained in:
parent
be2cc1a25e
commit
b581fa319a
10
README.md
10
README.md
@ -26,13 +26,13 @@ cp .env.example .env
|
|||||||
|
|
||||||
### Generate `homeserver.yaml`
|
### Generate `homeserver.yaml`
|
||||||
|
|
||||||
1. Run the following command to use the `matrixdotorg/synapse` image to generate a `homeserver.yaml` file (replace `$VOLUME_PATH` and `$SERVER_NAME` with the values you set in your [.env](.env) file):
|
1. Run the following command to use the `matrixdotorg/synapse` image to generate a `homeserver.yaml` file (replace `$VOLUME_PATH` with the value you set in your [.env](.env) file and `example.com` with your domain):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo docker run -it --rm \
|
sudo docker run -it --rm \
|
||||||
--mount type=bind,src=$VOLUME_PATH/data,dst=/data \
|
--mount type=bind,src=$VOLUME_PATH/data,dst=/data \
|
||||||
-e SYNAPSE_SERVER_NAME=$SERVER_NAME \
|
-e SYNAPSE_SERVER_NAME=example.com \ `# Replace with your domain`
|
||||||
-e SYNAPSE_REPORT_STATS=no \ # Change to yes if you wish to report stats to Matrix
|
-e SYNAPSE_REPORT_STATS=no \ `# Change to yes if you wish to report stats to Matrix`
|
||||||
matrixdotorg/synapse:latest generate
|
matrixdotorg/synapse:latest generate
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -65,7 +65,9 @@ database:
|
|||||||
cp_max: 10
|
cp_max: 10
|
||||||
```
|
```
|
||||||
|
|
||||||
5. Bring up the containers!
|
5. Locate the `public_baseurl` setting in `homeserver.yaml` and set it to the URL of your Matrix server domain name (e.g. `matrix.example.com`)
|
||||||
|
|
||||||
|
6. Bring up the containers!
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo docker-compose -p matrix-synapse up -d
|
sudo docker-compose -p matrix-synapse up -d
|
||||||
|
Loading…
Reference in New Issue
Block a user