Container to connect with MEGA.nz Cloud Drives using WebDAV.
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-webdavWith your file manager navigate to 127.0.0.1:80 and optionally sign in with your WebDAV credentials.
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 |
-e WEBDAV_USERNAME="user" \
-e WEBDAV_PASSWORD_HASH="$(echo 'secret' | mkpasswd -P0 -msha512)" \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.