Skip to content

Docker image with mega-cmd installed.

Notifications You must be signed in to change notification settings

SimonPrinz/mega-cmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mega-cmd

Docker image with mega-cmd installed.

Usage

After starting the container, it will login you in and then display the name of the webdav (for example: Serving via webdav /: http://127.0.0.1:80/aBcDeFgHiJ/Cloud%20Drive.
It will then be available at the port you specified: http://127.0.0.1:4443/aBcDeFgHiJ/Cloud%20Drive.

version: '3.7'

services:
  mega:
    image: ghcr.io/simonprinz/mega-cmd:latest
    environment:
    - "EMAIL=<email>"
    - "PASSWORD=<password>"
    - "MFA=<mfa>" # optional mfa code, timing is key ;)
    - "DIRECTORY=/" # mount point for webdav
    volumes:
    - "./session:/root/.megaCmd"
    ports:
    - "4443:80"

You can open it via browser or mount it as a webdav on your computer.
If you want HTTPS/SSL, you can use a reverse proxy for the url aswell.
It also works with basic authentication. See an example with Caddy below.

mega.home.local {
  basic_auth {
    Bob $2a$14$Zkx19XLiW6VYouLHR5NmfOFU0z2GTNmpkT/5qqR7hx4IjWJPDhjvG
  }
  revverse_proxy 127.0.0.1:4443
}

About

Docker image with mega-cmd installed.

Resources

Stars

Watchers

Forks

Packages