Sign inSign up

nedix/mega-webdav

By nedix

•Updated 3 months ago

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

Image
2

5.4K

nedix/mega-webdav repository overview

⁠mega-webdav-container⁠

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 \
    --restart unless-stopped \
    -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.

VariableRequiredDescription
MEGA_EMAILYesEmail associated with a MEGA.nz Cloud Drive account
MEGA_PASSWORDYesPassword associated with a MEGA.nz Cloud Drive account
MEGA_DIRECTORYNoUse a sub-directory from a MEGA.nz Cloud Drive
WEBDAV_USERNAME⁠With WEBDAV_PASSWORD_HASHUsername to protect the WebDAV connection
WEBDAV_PASSWORD_HASH⁠With WEBDAV_USERNAMEsha512 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.

Tag summary

Content type

Image

Digest

sha256:404d48b68…

Size

78.8 MB

Last updated

3 months ago

docker pull nedix/mega-webdav