element-web. draft.

This commit is contained in:
Alexey Skobkin 2022-03-16 16:25:32 +03:00
parent d35c67d9c8
commit b9bf93abab
5 changed files with 64 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 | Not tested | `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

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

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

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,33 @@
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 / {
location = /index.html {
add_header Cache-Control "no-cache";
}
location = /version {
add_header Cache-Control "no-cache";
}
# covers config.json and config.hostname.json requests as it is prefix.
location /config {
add_header Cache-Control "no-cache";
}
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;
}