Skip to content
Snippets Groups Projects
Commit 6552a2e8 authored by me5na7qbjqbrp's avatar me5na7qbjqbrp
Browse files

Custom UI

parent fa451d06
No related branches found
No related tags found
No related merge requests found
[submodule "riot-web"]
path = riot-web
url = https://gitlab.crans.org/eea/riot-web.git
......@@ -2,6 +2,13 @@
Services de vidéo conférences et autres pour maintenir les services durant la pandémie du COVID-19.
## Lancement
```bash
sudo docker-compose build riot
sudo docker-compose up -d
```
## Configuration initiale de postgres
```bash
......
......@@ -65,7 +65,8 @@ services:
- ./postgres_data:/var/lib/postgresql/data
riot:
image: vectorim/riot-web:v1.5.12
build:
context: riot
restart: always
volumes:
- ./riot/config.json:/app/config.json:ro
......
# Builder
FROM node:10 as builder
# Support custom branches of the react-sdk and js-sdk. This also helps us build
# images of riot-web develop.
ARG USE_CUSTOM_SDKS=true
ARG REACT_SDK_REPO="https://gitlab.crans.org/eea/matrix-react-sdk.git"
ARG REACT_SDK_BRANCH="eea"
ARG JS_SDK_REPO="https://github.com/matrix-org/matrix-js-sdk.git"
ARG JS_SDK_BRANCH="master"
RUN apt-get update && apt-get install -y git dos2unix
WORKDIR /src
RUN git clone https://github.com/vector-im/riot-web.git /src
RUN dos2unix /src/scripts/docker-link-repos.sh && bash /src/scripts/docker-link-repos.sh
RUN yarn --network-timeout=100000 install
RUN yarn build
# Copy the config now so that we don't create another layer in the app image
RUN cp /src/config.sample.json /src/webapp/config.json
# Ensure we populate the version file
RUN dos2unix /src/scripts/docker-write-version.sh && bash /src/scripts/docker-write-version.sh
# App
FROM nginx:alpine
COPY --from=builder /src/webapp /app
# Insert wasm type into Nginx mime.types file so they load correctly.
RUN sed -i '3i\ \ \ \ application/wasm wasm\;' /etc/nginx/mime.types
RUN rm -rf /usr/share/nginx/html \
&& ln -s /app /usr/share/nginx/html
......@@ -23,7 +23,7 @@
"integrations_ui_url": "",
"integrations_rest_url": "",
"integrations_widgets_urls": [],
"integrations_jitsi_widget_url": "https://scalar.vector.im/api/widgets/jitsi.html",
"integrations_jitsi_widget_url": "https://jitsi.crans.org",
"bug_report_endpoint_url": "",
"defaultCountryCode": "FR",
"showLabsSettings": false,
......@@ -43,6 +43,7 @@
"settingDefaults": {
"breadcrumbs": true
},
"disable_custom_urls": true
"disable_custom_urls": true,
"permalinkPrefix": "https://eea.crans.org"
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment