Skip to content

Commit a4fab50

Browse files
fix(config): Update the configuration instructions for new servers
Removes /api/v9 from configuration, which can cause invitations to break Replaces volume mapping for docker files with one that should correctly persist users data
1 parent a3de882 commit a4fab50

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
site/
22
.DS_STORE
33
venv/
4+
#Files added by IDEs
5+
.project

docs/setup/server/configuration/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ See [EMail](email.md) for more information.
306306
{
307307
"api": {
308308
"endpointPrivate": "http://127.0.0.1:3001",
309-
"endpointPublic": "https://api.spacebar.example.net/api/v9"
309+
"endpointPublic": "https://api.spacebar.example.net"
310310
},
311311
"cdn": {
312312
"endpointPrivate": "http://127.0.0.1:3002",

docs/setup/server/installation/docker.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,11 @@ docker run \
2626
--network spacebar-network \
2727
-e DATABASE=postgres://postgres:postgres@spacebar-db/postgres \
2828
-e CONFIG_PATH=config/config.json \
29-
-v ./config:/config \
30-
-v ./files:/files \
29+
-v ./data:/data \
3130
ghcr.io/{{ repositories.server }}
3231
```
3332

34-
4. Set config values for `general.serverName`, `cdn.endpointPublic`, `cdn.endpointPrivate` to `http://localhost:3001`, `api.endpointPublic` to `http://localhost:3001/api/v9` and `gateway.endpointPublic` to `ws://localhost:3001`
33+
4. Set config values for `general.serverName`, `cdn.endpointPublic`, `cdn.endpointPrivate` and `api.endpointPublic` to `http://localhost:3001`, and `gateway.endpointPublic` to `ws://localhost:3001`
3534

3635
5. Run the server docker image after the config changes:
3736
```sh
@@ -40,8 +39,7 @@ docker run \
4039
--network spacebar-network \
4140
-e DATABASE=postgres://postgres:postgres@spacebar-db/postgres \
4241
-e CONFIG_PATH=config/config.json \
43-
-v ./config:/config \
44-
-v ./files:/files \
42+
-v ./data:/data
4543
-p 3001:3001 \
4644
ghcr.io/{{ repositories.server }}
4745
```

docs/setup/server/installation/dockerCompose.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ For the full list of config file options, check out the [configuration settings]
111111
| `gateway.endpointPublic` | External (e.g. from a user) gateway communication | wss://spacebar.your.domain |
112112
| `cdn.endpointPrivate` | Internal CDN communication | http://spacebar-cdn:3001 |
113113
| `cdn.gatewayPublic` | External CDN communication | https://cdn.your.domain |
114-
| `api.endpointPrivate` | Internal API communication | http://spacebar-api:3001/api/v9 |
115-
| `api.endpointPublic` | External API communication | https://api.your.domain/api/v9 |
114+
| `api.endpointPrivate` | Internal API communication | http://spacebar-api:3001 |
115+
| `api.endpointPublic` | External API communication | https://api.your.domain |
116116
| `rabbitmq.host` | Internal communication between Spacebar containers | amqp://guest:guest@rabbitmq:5672 |
117117

118118
3. Bring up the containers

0 commit comments

Comments
 (0)