From 76b39e475184ed64c734bd88612116816fe38c51 Mon Sep 17 00:00:00 2001 From: Viyurz <128215328+Viyurz@users.noreply.github.com> Date: Mon, 12 Feb 2024 11:39:14 +0100 Subject: [PATCH] Added Send service. --- nginx-rp/reverse-proxy.conf | 23 +++++++++++++++++++++++ ports.txt | 1 + send/docker-compose.yaml | 31 +++++++++++++++++++++++++++++++ update.sh | 2 +- 4 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 send/docker-compose.yaml diff --git a/nginx-rp/reverse-proxy.conf b/nginx-rp/reverse-proxy.conf index 2fb4cb6..6e402e4 100644 --- a/nginx-rp/reverse-proxy.conf +++ b/nginx-rp/reverse-proxy.conf @@ -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 server { listen 443 ssl http2; diff --git a/ports.txt b/ports.txt index 7411685..ae2828b 100644 --- a/ports.txt +++ b/ports.txt @@ -1,5 +1,6 @@ 80/443 -> NGINX reverse proxy 995 -> SSH +1443 -> Send 3478 -> coturn 3735 -> Etebase 5349 -> coturn diff --git a/send/docker-compose.yaml b/send/docker-compose.yaml new file mode 100644 index 0000000..d6537d4 --- /dev/null +++ b/send/docker-compose.yaml @@ -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: diff --git a/update.sh b/update.sh index c72df30..12128f5 100755 --- a/update.sh +++ b/update.sh @@ -1,7 +1,7 @@ #!/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)