Ajout Etebase & Cryptpad
This commit is contained in:
parent
02d26020fd
commit
76b8394bd9
5 changed files with 76 additions and 1 deletions
26
cryptpad/docker-compose.yaml
Normal file
26
cryptpad/docker-compose.yaml
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
services:
|
||||||
|
cryptpad:
|
||||||
|
image: "cryptpad/cryptpad:version-5.5.0"
|
||||||
|
container_name: cryptpad
|
||||||
|
restart: always
|
||||||
|
hostname: cryptpad
|
||||||
|
environment:
|
||||||
|
- CPAD_MAIN_DOMAIN=https://cryptpad.viyurz.fr
|
||||||
|
- CPAD_SANDBOX_DOMAIN=https://cryptpad-sandbox.viyurz.fr
|
||||||
|
- CPAD_CONF=/cryptpad/config/config.js
|
||||||
|
volumes:
|
||||||
|
- /mnt/cryptpaddata/config/config.js:/cryptpad/config/config.js
|
||||||
|
- /mnt/cryptpaddata/blob:/cryptpad/blob
|
||||||
|
- /mnt/cryptpaddata/data/block:/cryptpad/block
|
||||||
|
- /mnt/cryptpaddata/customize:/cryptpad/customize
|
||||||
|
- /mnt/cryptpaddata/data/data:/cryptpad/data
|
||||||
|
- /mnt/cryptpaddata/data/files:/cryptpad/datastore
|
||||||
|
ports:
|
||||||
|
- "[::1]:3000:3000"
|
||||||
|
- "[::1]:3001:3001"
|
||||||
|
- "[::1]:3003:3003"
|
||||||
|
ulimits:
|
||||||
|
nofile:
|
||||||
|
soft: 1000000
|
||||||
|
hard: 1000000
|
||||||
|
user: cryptpad # useradd -u 4001 cryptpad
|
14
etebase/docker-compose.yaml
Normal file
14
etebase/docker-compose.yaml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
services:
|
||||||
|
etebase:
|
||||||
|
image: victorrds/etebase:alpine
|
||||||
|
container_name: etebase
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
SERVER: http
|
||||||
|
ALLOWED_HOSTS: etebase.viyurz.fr
|
||||||
|
SUPER_USER: v444599a8zJUBud60fu9uk9Vo3xXHinp
|
||||||
|
AUTO_UPDATE: 'true'
|
||||||
|
ports:
|
||||||
|
- "[::1]:3735:3735"
|
||||||
|
volumes:
|
||||||
|
- /mnt/etebasedata:/data
|
2
maj.sh
2
maj.sh
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
services=(mc nginx-www searxng synapse syncthing vw)
|
services=(cryptpad etebase mc nginx-www searxng synapse syncthing vw)
|
||||||
|
|
||||||
|
|
||||||
if [[ ! $(echo "${services[*]} all" | grep -P "\b$1\b" ) ]]; then
|
if [[ ! $(echo "${services[*]} all" | grep -P "\b$1\b" ) ]]; then
|
||||||
|
|
|
@ -136,6 +136,39 @@ server {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Cryptpad
|
||||||
|
server {
|
||||||
|
listen 443 ssl http2;
|
||||||
|
listen [::]:443 ssl http2;
|
||||||
|
|
||||||
|
server_name cryptpad.viyurz.fr cryptpad-sandbox.viyurz.fr;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://localhost:3000;
|
||||||
|
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection upgrade;
|
||||||
|
client_max_body_size 150m;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Etebase
|
||||||
|
server {
|
||||||
|
listen 443 ssl http2;
|
||||||
|
listen [::]:443 ssl http2;
|
||||||
|
|
||||||
|
server_name etebase.viyurz.fr;
|
||||||
|
|
||||||
|
location ~ ^/(?!admin) {
|
||||||
|
proxy_pass http://localhost:3735;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Homepage
|
# Homepage
|
||||||
server {
|
server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
80/443 -> NGINX reverse proxy
|
80/443 -> NGINX reverse proxy
|
||||||
995 -> SSH
|
995 -> SSH
|
||||||
|
3000-3003 -> Cryptpad
|
||||||
|
3735 -> Etebase
|
||||||
5432 -> Syncthing
|
5432 -> Syncthing
|
||||||
8008 -> Synapse
|
8008 -> Synapse
|
||||||
8080 -> Nextcloud AIO
|
8080 -> Nextcloud AIO
|
||||||
|
|
Loading…
Reference in a new issue