Sign inSign up

liujian3lj7/nginx_upload

By liujian3lj7

•Updated about 3 years ago

Image
0

1.4K

liujian3lj7/nginx_upload repository overview

⁠Upload File with Nginx upload module

  • ENV:
    • nginx-1.15.9
    • nginx-upload-module-2.3.0

⁠Run

  • docker build -t nginx-upload:v1 . -f Dockerfile
  • docker run -d -p 80:80 -p 8080:8080 --name nginx-upload nginx-upload:v1

⁠Test

  • access to the your ip:8080 and you will see the nginx default web page
  • curl your ip:80/upload -F "fileobj=@file path" to upload file and you can see the upload file at docker container at the path /tmp/nginx_upload/

⁠Docker

  • docker run -d -v /root/:/tmp/nginx_upload -p 80:80 -p 8080:8080 --name nginx_upload liujian3lj7/nginx_upload

Tag summary

Content type

Image

Digest

sha256:efeee327d…

Size

25.6 MB

Last updated

about 3 years ago

docker pull liujian3lj7/nginx_upload