Sign inSign up

lockermanwxlf/mega-http-server

By lockermanwxlf

•Updated over 1 year ago

Image
0

361

lockermanwxlf/mega-http-server repository overview

⁠Environment Variables

  • MEGA_EMAIL: Email of MEGA account
  • MEGA_PASSWORD: Password of MEGA account

⁠Endpoints

GET /file: Returns 200 if a file exists at path, otherwise 404.

  • PARAM path: Path to file in MEGA storage

POST /file: Downloads bytes from content_url and writes it to a new file created at mega_path.

  • FORM mega_path: Path to create file in MEGA storage
  • FORM content_url: Video url, the bytes of which will be written to the file created at mega_path

PUT /file: Takes a file uploaded as file and writes it to mega_path.

  • FORM mega_path: Path to create file in MEGA storage
  • FILE file: Uploaded file which is written to mega_path

GET /folder: Returns a list containing the file names of all direct-children files and directories of path.

  • PARAM path: The path of the folder whose children's names will be returned.

Tag summary

Content type

Image

Digest

sha256:5f3290a05…

Size

547.6 MB

Last updated

over 1 year ago

docker pull lockermanwxlf/mega-http-server