From aa944da7f6030ec1c3e0c937ac722020a20fa47d Mon Sep 17 00:00:00 2001 From: L4RM4ND <21357789+l4rm4nd@users.noreply.github.com> Date: Wed, 8 Nov 2023 10:53:11 +0100 Subject: [PATCH] add send --- README.md | 1 + examples/send/README.md | 8 +++++ examples/send/docker-compose.yml | 52 ++++++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 examples/send/README.md create mode 100644 examples/send/docker-compose.yml diff --git a/README.md b/README.md index 1f12dfdd5..95ba3edcd 100644 --- a/README.md +++ b/README.md @@ -159,6 +159,7 @@ docker compose up - [Transfer.zip](examples/transfer.zip) - Transfer files securely and E2E encrypted (AES-256 GCM) between browsers using WebRTC Peer2peer. - [HedgeDoc](examples/hedgedoc) - HedgeDoc lets you create real-time collaborative markdown notes. - [YOURLS](examples/yourls) - The de-facto standard self hosted URL shortener in PHP. +- [Send](examples/send) - Simple, private file sharing with encryption. A fork of Mozilla's Firefox Send. ### Publishing, Writing, Blogging, Hosting, E-Commerce - [Ghost](examples/ghost) - Ghost is a free and open source blogging platform written in JavaScript and distributed under the MIT License, designed to simplify the process of online publishing for individual bloggers as well as online publications. diff --git a/examples/send/README.md b/examples/send/README.md new file mode 100644 index 000000000..3c0df3664 --- /dev/null +++ b/examples/send/README.md @@ -0,0 +1,8 @@ +# References + +- https://github.com/timvisee/send +- https://github.com/timvisee/send/blob/master/docs/docker.md + +# Notes + +After spawning the container, you may have to adjust the bind volume mount permissions again. \ No newline at end of file diff --git a/examples/send/docker-compose.yml b/examples/send/docker-compose.yml new file mode 100644 index 000000000..1e3a51c26 --- /dev/null +++ b/examples/send/docker-compose.yml @@ -0,0 +1,52 @@ +version: "3" + +services: + + send: + image: registry.gitlab.com/timvisee/send:latest + container_name: send-app + restart: unless-stopped + ports: + - 1234:1234 + expose: + - 1234 + volumes: + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/send/uploads:/uploads + environment: + - BASE_URL=send.ptf.one # The HTTPS URL where traffic will be served + - PORT=1234 + - REDIS_HOST=redis + # For local uploads storage + - FILE_DIR=/uploads + # To customize upload limits + - EXPIRE_TIMES_SECONDS=3600,86400,604800,2592000,31536000 # Expire time options to show in UI dropdown, e.g. 3600,86400,604800,2592000,31536000 + - DEFAULT_EXPIRE_SECONDS=604800 # Default expire time in UI (defaults to 86400) + - MAX_EXPIRE_SECONDS=31536000 # Maximum upload expiry time in seconds (defaults to 604800 aka 7 days) + - DOWNLOAD_COUNTS=1,2,5,10,50 # Download limit options to show in UI dropdown, e.g. 10,1,2,5,10,15,25,50,100,1000 + - DEFAULT_DOWNLOADS=10 + - MAX_DOWNLOADS=10 # Maximum number of downloads (defaults to 100) + - MAX_FILE_SIZE=2684354560 # Maximum upload file size in bytes (defaults to 2147483648 aka 2GB) + #networks: + # - proxy + #labels: + # - traefik.enable=true + # - traefik.docker.network=proxy + # - traefik.http.routers.send.rule=Host(`send.example.com`) + # - traefik.http.services.send.loadbalancer.server.port=1234 + # - traefik.http.middlewares.limit.buffering.maxRequestBodyBytes=5000000000 # optional, only necessary for file uploads; allow 5GB + # - traefik.http.middlewares.limit.buffering.maxResponseBodyBytes=5000000000 # optional, only necessary for file uploads; allow 5GB + # - traefik.http.middlewares.limit.buffering.memRequestBodyBytes=5000000000 # optional, only necessary for file uploads; allow 5GB + # - traefik.http.middlewares.limit.buffering.memResponseBodyBytes=5000000000 # optional, only necessary for file uploads; allow 5GB + + redis: + image: redis:alpine + container_name: send-redis + restart: unless-stopped + volumes: + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/send/redis:/data + #networks: + # - proxy + +#networks: +# proxy: +# external: true \ No newline at end of file