Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zipper

Features

It accepts file urls in the request and return a key to allow the client to start downloading a zip of those files immediately.

  • Sync download immediately, no waiting
  • Fit for modern browser and IE
  • Handle duplicate file names by renaming
  • Support folders, including reserved empty folders
  • Not support compression in zip

How to run

Requirements

  • docker
  • docker-compose

Deployment Architecture

  • redis
  • zipper

Configuration

Create a config.env, with some config for http auth and redis connection.

HTTP_LISTEN_PORT=24080
HTTP_APP_KEY=INSECURE-APP-KEY
HTTP_SECRET_KEY=INSECURE-SECRET-KEY
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_PASSWORD=
REDIS_DB=1

Run

You can run it with this kind of docker-compose file.

version: '3'

services:
  zipper:
    image: wushaobo/zipper:latest
    command: /opt/zipper/run.sh
    ports:
      - "24080:80"
    env_file:
      - config.env
    volumes:
      - "/docker/logs/zipper:/var/log/zipper"

Contribute

Suggestions and issues are welcomed.

Development

Run containers as daemon to start the services of dependencies.

./devtool.sh start-deps

Rebuild and run zipper container in foreground.

./devtool.sh build-and-run

Build

The CI of this repo is on travis-ci.org .

It will build docker image with the following command,

./build.sh build-image

then push to docker registry with the following command,

./build.sh push-to-registry

About

A service providing zip download immediately for the given source file urls.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages