Element Web (#19)

Solves #18.

Reviewed-on: #19
This commit is contained in:
Alexey Skobkin 2022-03-16 17:21:56 +03:00
parent d35c67d9c8
commit 80e05de92a
7 changed files with 115 additions and 0 deletions

View file

@ -29,6 +29,7 @@ Not every stack is tested to fully work.
|-------------------------|--------------|----------------------------------------------|----------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ARK Server | ✅ | `thmhoag/arkserver` | ARK: Survival Evolved game server with ArkManager. | [Website](http://playark.com), [Steam](https://store.steampowered.com/app/346110/ARK_Survival_Evolved/), [Image Github](https://github.com/thmhoag/arkserver), [ArkManager](https://github.com/arkmanager/ark-server-tools) |
| Duplicati | ✅ | `linuxserver/duplicati` | Backup solution with many storage backends. | [Website](https://www.duplicati.com), [Github](https://github.com/duplicati/duplicati) |
| Element-web | ✅ | `vectorim/element-web` | Web Matrix client. | [Website](https://element.io), [Github](https://github.com/vector-im/element-web/) |
| Folding@Home | ✅ | `johnktims/folding-at-home` | Protein folding distributed computing platform. | [Website](https://foldingathome.org), [My guide](https://skobk.in/2020/06/folding-at-home-quick-start/) |
| Gatus | ✅ | `twinproduction/gatus` | Advanced service(s) status page. | [Website](https://gatus.io), [Github](https://github.com/TwiN/gatus) |
| Gitea | ✅ | `gitea/gitea` | Lightweight Git hosting platfom. | [Website](https://gitea.io/), [Github](https://github.com/go-gitea/gitea) |

8
element-web/.env.dist Normal file
View file

@ -0,0 +1,8 @@
# see https://hub.docker.com/r/vectorim/element-web
HOST_USER=0
WEBUI_BIND_ADDR=127.0.0.1
WEBUI_BIND_PORT=8385
LOG_MAX_SIZE=5m
LOG_MAX_FILE=5

8
element-web/README.md Normal file
View file

@ -0,0 +1,8 @@
# Configuration
```shell
cp config/config.json.dist config/config.json
```
Then edit your config.json according to your needs. See
[this](https://github.com/vector-im/element-web/blob/develop/docs/config.md) for more info.

3
element-web/config/.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
/*
!/.gitignore
!/config.json.dist

View file

@ -0,0 +1,54 @@
{
"default_server_config": {
"m.homeserver": {
"base_url": "https://matrix-client.matrix.org",
"server_name": "matrix.org"
},
"m.identity_server": {
"base_url": "https://vector.im"
}
},
"disable_custom_urls": false,
"disable_guests": false,
"disable_login_language_selector": false,
"disable_3pid_login": false,
"brand": "Element",
"integrations_ui_url": "https://scalar.vector.im/",
"integrations_rest_url": "https://scalar.vector.im/api",
"integrations_widgets_urls": [
"https://scalar.vector.im/_matrix/integrations/v1",
"https://scalar.vector.im/api",
"https://scalar-staging.vector.im/_matrix/integrations/v1",
"https://scalar-staging.vector.im/api",
"https://scalar-staging.riot.im/scalar/api"
],
"bug_report_endpoint_url": "https://element.io/bugreports/submit",
"uisi_autorageshake_app": "element-auto-uisi",
"defaultCountryCode": "GB",
"showLabsSettings": false,
"features": { },
"default_federate": true,
"default_theme": "light",
"roomDirectory": {
"servers": [
"matrix.org"
]
},
"piwik": {
"url": "https://piwik.riot.im/",
"whitelistedHSUrls": ["https://matrix.org"],
"whitelistedISUrls": ["https://vector.im", "https://matrix.org"],
"siteId": 1
},
"enable_presence_by_hs_url": {
"https://matrix.org": false,
"https://matrix-client.matrix.org": false
},
"settingDefaults": {
"breadcrumbs": true
},
"jitsi": {
"preferredDomain": "meet.element.io"
},
"map_style_url": "https://api.maptiler.com/maps/streets/style.json?key=fU3vlMsMn4Jb6dnEIFsx"
}

View file

@ -0,0 +1,19 @@
# https://hub.docker.com/r/vectorim/element-web
version: '3.7'
services:
element-web:
image: vectorim/element-web
container_name: element-web
volumes:
- "./config/config.json:/app/config.json"
ports:
- "${WEBUI_BIND_ADDR}:${WEBUI_BIND_PORT}:80"
env_file: .env
restart: unless-stopped
user: "${HOST_USER:-0}"
logging:
driver: "json-file"
options:
max-size: "${LOG_MAX_SIZE:-5m}"
max-file: "${LOG_MAX_FILE:-5}"

View file

@ -0,0 +1,22 @@
server {
listen 80;
server_name syncthing.domain.tld;
#charset utf-8;
# see https://github.com/vector-im/element-web/blob/develop/nginx/conf.d/default.conf
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
proxy_pass http://127.0.0.1:8385/;
}
# redirect server error pages to the static page /50x.html
error_page 500 502 503 504 /50x.html;
}