Skip to content

yestool/imgUU-bucket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ImgUU-bucket

ImgUU self bucket ,build on docker with Nginx.

deploy docker-compose

docker-compose.yml

services:
  imguu-bucket:
    image: yestool/imguu-bucket:latest
    ports:
      - "8082:8080"
    environment:
      UPLOAD_SECRET_KEY: mybucketkey
    volumes:
      - ./uploadfiles:/uploadfiles

nginx config


location /upload {
  client_max_body_size  1024m;
  proxy_set_header Host $host:$server_port;
  proxy_set_header X-Real-Ip $remote_addr;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_http_version 1.1;
  proxy_set_header Upgrade $http_upgrade;
  proxy_set_header Connection "upgrade";
  proxy_connect_timeout 99999;
  proxy_pass http://127.0.0.1:8082;
}

# Assume docker-compose.yml file in the /data directory,change your path
location ~ .*\.(webp|gif|jpg|jpeg|png|bmp|swf)$ {
  root /data/uploadfiles;
}

About

imgUU self bucket

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published