Skip to content

Container to connect with MEGA.nz Cloud Drives using WebDAV.

License

Notifications You must be signed in to change notification settings

nedix/mega-webdav-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

145 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Container to connect with MEGA.nz Cloud Drives using WebDAV.

Table of contents

Usage

1. Start the container

The following command is a minimal example to get the container up and running:

docker run \
    --name mega-webdav \
    --pull always \
    --rm \
    -e MEGA_EMAIL="foo" \
    -e MEGA_PASSWORD="bar" \
    -p 127.0.0.1:80:80 \
    nedix/mega-webdav

2. Browse the files

With your file manager navigate to 127.0.0.1:80 and optionally sign in with your WebDAV credentials.

Configuration

Environment

You can configure the container by making use of the following environment variables. Add them to the .env file and use --env-file=.env or use the -e flag with the docker run command.

Variable Required Description
MEGA_EMAIL Yes Email associated with a MEGA.nz Cloud Drive account
MEGA_PASSWORD Yes Password associated with a MEGA.nz Cloud Drive account
MEGA_DIRECTORY No Use a sub-directory from a MEGA.nz Cloud Drive
WEBDAV_USERNAME With WEBDAV_PASSWORD_HASH Username to protect the WebDAV connection
WEBDAV_PASSWORD_HASH With WEBDAV_USERNAME sha512 hash of a password to protect the WebDAV connection

Security

    -e WEBDAV_USERNAME="user" \
    -e WEBDAV_PASSWORD_HASH="$(echo 'secret' | mkpasswd -P0 -msha512)" \

Development

Please refer to the Makefile documentation for instructions to build and run the container if you have cloned this repository.

Please refer to the nedix/actions repository for instructions to configure the secrets if you have forked this repository.

About

Container to connect with MEGA.nz Cloud Drives using WebDAV.

Resources

License

Stars

Watchers

Forks

Contributors