Added Send service.

This commit is contained in:
Viyurz 2024-02-12 11:39:14 +01:00
parent 8e12942716
commit 76b39e4751
4 changed files with 56 additions and 1 deletions

View file

@ -135,6 +135,29 @@ server {
} }
# Send
upstream send {
server localhost:1443;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name send.viyurz.fr;
location / {
proxy_pass http://send;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control;
# WebSocket
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
}
# Synapse # Synapse
server { server {
listen 443 ssl http2; listen 443 ssl http2;

View file

@ -1,5 +1,6 @@
80/443 -> NGINX reverse proxy 80/443 -> NGINX reverse proxy
995 -> SSH 995 -> SSH
1443 -> Send
3478 -> coturn 3478 -> coturn
3735 -> Etebase 3735 -> Etebase
5349 -> coturn 5349 -> coturn

31
send/docker-compose.yaml Normal file
View file

@ -0,0 +1,31 @@
services:
send:
container_name: send
build: https://gitlab.com/timvisee/send.git
image: send
restart: always
user: '1003:1003'
environment:
- BASE_URL=https://send.viyurz.fr
- REDIS_HOST=send-redis
# To customize upload limits
# - EXPIRE_TIMES_SECONDS=3600,86400,604800,2592000,31536000
# - DEFAULT_EXPIRE_SECONDS=3600
# - MAX_EXPIRE_SECONDS=31536000
# - DOWNLOAD_COUNTS=1,2,5,10,15,25,50,100,1000
# - MAX_DOWNLOADS=1000
# - MAX_FILE_SIZE=2684354560
ports:
- '[::1]:1443:1443'
volumes:
- /mnt/send:/uploads
redis:
container_name: send-redis
image: redis:alpine
restart: always
volumes:
- redis:/data
volumes:
redis:

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
services=(coturn element etebase nginx-www searxng synapse syncthing vw) services=(coturn element etebase nginx-www searxng send synapse syncthing vw)
needs_backup=(etebase synapse vw) needs_backup=(etebase synapse vw)