Merge pull request #799 from vector-im/dbkr/sample_config

Make sample config just have the HS config
This commit is contained in:
David Baker 2022-12-21 17:58:43 +00:00 committed by GitHub
commit 0880faf312
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 18 additions and 19 deletions

View File

@ -5,7 +5,6 @@
####
# Used for determining the homeserver to use for short urls etc.
# VITE_DEFAULT_HOMESERVER=http://localhost:8008
# VITE_FALLBACK_STUN_ALLOWED=false
# VITE_CUSTOM_THEME=true

View File

@ -9,7 +9,7 @@ RUN scripts/dockerbuild.sh
FROM nginxinc/nginx-unprivileged:alpine
COPY --from=builder /src/dist /app
COPY config/default.conf /etc/nginx/conf.d/
COPY config/nginx.conf /etc/nginx/conf.d/
USER root

View File

@ -15,20 +15,19 @@ Until prebuilt tarballs are available, you'll need to build Element Call from so
git clone https://github.com/vector-im/element-call.git
cd element-call
yarn
cp .env.example .env
cp sample.config.json public/config.json
```
You can now edit the configuration in `.env` and `public/config.json` to your liking. (See the [configuration](#Configuration) section for details.) The most important thing is to set `VITE_DEFAULT_HOMESERVER` to the homeserver that the app should use, such as `https://call.ems.host`.
Next, build the project:
```
yarn build
```
If all went well, you can now find the build output under `dist` as a series of static files. These can be hosted using any web server of your choice.
You may also wish to add a configuration file (Element Call uses the domain it's hosted on as a Homeserver URL by default,
but you can change this in the config file). This goes in `public/config.json` - you can use the sample as a starting point:
```
cp config/config.sample.json public/config.json
# edit public/config.json
```
Because Element Call uses client-side routing, your server must be able to route any requests to non-existing paths back to `/index.html`. For example, in Nginx you can achieve this with the `try_files` directive:
```
@ -59,11 +58,9 @@ git clone https://github.com/vector-im/element-call.git
cd element-call
yarn
yarn link matrix-js-sdk
cp .env.example .env
cp sample.config.json public/config.json
```
By default, the app expects you to have [Synapse](https://matrix-org.github.io/synapse/latest/setup/installation.html) installed locally and running on port 8008. If you wish to use another homeserver, you can set it in your `.env` file.
By default, the app expects you to have [Synapse](https://matrix-org.github.io/synapse/latest/setup/installation.html) installed locally and running on port 8008. If you wish to use another homeserver, you can add a config file as above.
You're now ready to launch the development server:

View File

@ -0,0 +1,8 @@
{
"default_server_config": {
"m.homeserver": {
"base_url": "https://call.ems.host",
"server_name": "call.ems.host"
}
}
}

View File

@ -1,5 +0,0 @@
{
"rageshake": {
"submit_url": "https://element.io/bugreports/submit"
}
}