Skip to content

Instantly share code, notes, and snippets.

@firmanelhakim
Last active November 6, 2021 08:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save firmanelhakim/c83d80ddf00bedf60fd31d5747b63877 to your computer and use it in GitHub Desktop.
Save firmanelhakim/c83d80ddf00bedf60fd31d5747b63877 to your computer and use it in GitHub Desktop.
How to Run YouTube Downloader from Docker

AllTube

docker run -d --name alltube --log-opt max-size=50m --restart unless-stopped rudloff/alltube

Caddy as Reverse Proxy

Caddyfile
{
  # acme_ca https://acme-staging-v02.api.letsencrypt.org/directory
  email me@doesnt-exists.com
}

www.doesnt-exists.com {
  redir https://doesnt-exists.com{uri} permanent
}

doesnt-exists.com {
  reverse_proxy {
    header_up X-Forwarded-Proto https
    to alltube:80
  }
}

docker run -d --name caddy --log-opt max-size=50m --restart unless-stopped --link alltube:alltube -p 80:80 -p 443:443 -v $(pwd)/Caddyfile:/etc/caddy/Caddyfile -v $(pwd)/caddy_data:/data caddy/caddy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment