Add element web

This commit is contained in:
Viyurz 2023-12-11 14:40:29 +01:00
parent cb0b11f336
commit 1f0217a418
5 changed files with 42 additions and 1 deletions

3
element/config.json Normal file
View file

@ -0,0 +1,3 @@
{
"default_server_name": "viyurz.fr"
}

View file

@ -0,0 +1,9 @@
services:
element:
container_name: element
image: vectorim/element-web:latest
restart: always
ports:
- "[::1]:8084:80"
volumes:
- ./config.json:/app/config.json

View file

@ -150,6 +150,29 @@ server {
# Element
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name element.viyurz.fr;
location / {
proxy_pass http://localhost:8084;
add_header X-Frame-Options SAMEORIGIN;
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
add_header Content-Security-Policy "frame-ancestors 'none'";
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
add_header X-Robots-Tag "noindex, nofollow" always;
add_header Set-Cookie "Path=/; HttpOnly; Secure";
}
}
# Homepage # Homepage
server { server {
listen 443 ssl http2; listen 443 ssl http2;

View file

@ -9,6 +9,7 @@
8081 -> Vaultwarden 8081 -> Vaultwarden
8082 -> nginx-www 8082 -> nginx-www
8083 -> SearXNG 8083 -> SearXNG
8084 -> element-web
8384 -> Syncthing Web UI 8384 -> Syncthing Web UI
8443 -> stdisco 8443 -> stdisco
11000 -> Nextcloud 11000 -> Nextcloud

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
services=(coturn etebase nginx-www searxng synapse syncthing vw) services=(coturn element etebase nginx-www searxng synapse syncthing vw)
rel_path="$(dirname "$0")" rel_path="$(dirname "$0")"
@ -19,6 +19,11 @@ function coturn_update {
} }
function element_update {
compose_up element
}
function etebase_update { function etebase_update {
if ! docker pull victorrds/etebase:alpine | grep -q 'Image is up to date' ; then if ! docker pull victorrds/etebase:alpine | grep -q 'Image is up to date' ; then
echo "Update available for etebase." echo "Update available for etebase."