Add element web
This commit is contained in:
parent
cb0b11f336
commit
1f0217a418
5 changed files with 42 additions and 1 deletions
3
element/config.json
Normal file
3
element/config.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"default_server_name": "viyurz.fr"
|
||||
}
|
9
element/docker-compose.yaml
Normal file
9
element/docker-compose.yaml
Normal 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
|
|
@ -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
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
8081 -> Vaultwarden
|
||||
8082 -> nginx-www
|
||||
8083 -> SearXNG
|
||||
8084 -> element-web
|
||||
8384 -> Syncthing Web UI
|
||||
8443 -> stdisco
|
||||
11000 -> Nextcloud
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/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")"
|
||||
|
@ -19,6 +19,11 @@ function coturn_update {
|
|||
}
|
||||
|
||||
|
||||
function element_update {
|
||||
compose_up element
|
||||
}
|
||||
|
||||
|
||||
function etebase_update {
|
||||
if ! docker pull victorrds/etebase:alpine | grep -q 'Image is up to date' ; then
|
||||
echo "Update available for etebase."
|
||||
|
|
Loading…
Reference in a new issue