diff --git a/Dockerfile b/Dockerfile index d391bf2..3ce0ba8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ MAINTAINER PlusMinus # Create directory, downloader JD" and start JD2 for the initial update and creation of config files. RUN \ mkdir /opt/JDownloader/ && \ - wget -O /opt/JDownloader/JDownloader.jar --progress=bar:force http://installer.jdownloader.org/JDownloader.jar && \ + wget -O /opt/JDownloader/JDownloader.jar --user-agent="https://hub.docker.com/r/plusminus/jdownloader2-headless/" --progress=bar:force http://installer.jdownloader.org/JDownloader.jar && \ java -Djava.awt.headless=true -jar /opt/JDownloader/JDownloader.jar diff --git a/README.md b/README.md index 48b6c08..0a1507e 100644 --- a/README.md +++ b/README.md @@ -6,25 +6,7 @@ Headless JDownloader 2 Docker Container 1. Create a folder on your host for the configuration files (eg. sudo mkdir /config/jd2) 2. run `docker run -d --name jd2 -v /config/jd2:/opt/JDownloader/cfg -v /home/user/Downloads:/root/Downloads plusminus/jdownloader2-headless` 3. stop the container `docker stop jd2` -4. On your host, edit the file `org.jdownloader.api.myjdownloader.MyJDownloaderSettings.json` to match the content below +4. On your host, enter your credentials to the file `org.jdownloader.api.myjdownloader.MyJDownloaderSettings.json` as in `{ "password" : "mypasswort", "email" : "email@home.org" }` 5. Start the container -`{ - "uniquedeviceidsaltv2" : "i don't know whats supposed to be in here", - "autoconnectenabledv2" : true, - "debugenabled" : false, - "lastupnpport" : 0, - "lastlocalport" : 58103, - "connectip" : "api.jdownloader.org", - "latesterror" : "NONE", - "manuallocalport" : 3129, - "password" : "mypasswort", - "clientconnectport" : 80, - "directconnectmode" : "LAN", - "devicename" : "JDownloader@docker", - "manualremoteport" : 3129, - "uniquedeviceidv2" : "same as above", - "email" : "email@home.org" -}` -