diff --git a/README.md b/README.md index 00381f5..23deb9e 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,12 @@ [AllTube Download](https://github.com/Rudloff/alltube) is a Web GUI for [youtube-dl](https://github.com/ytdl-org/youtube-dl), you can use it to download videos from a lot of websites online, even if they don't want you to do this. -AllTube provide an [official site](http://alltubedownload.net/) to use youtube-dl online, or you can create one under your own domain. Unfortunately, the deployment of AllTube is a bit cumbersome, and a good docker can make your deployment faster. +*AllTube* provide an [official site](http://alltubedownload.net/) to use *youtube-dl* online, or you can create one under your own domain. Unfortunately, the deployment of *AllTube* is a bit cumbersome, and a good docker can make your deployment faster. -First of all, you must have a docker environment, if not you should [install docker](https://docs.docker.com/engine/install/) first. After completion, use the following command to start AllTube. +First of all, you must have a docker environment, if not you should [install docker](https://docs.docker.com/engine/install/) first. After completion, use the following command to start *AllTube*. ``` +# add `-e TITLE=...` option can specify the website title shell> docker run -dit -p 24488:80 --name alltube dnomd343/alltube ``` @@ -21,15 +22,15 @@ Next, configure your web server reverse proxy to `localhost:24488`, let's take * ``` server { listen 80; - server_name video.343.re; + server_name video.343.re; # your domain return 301 https://$server_name$request_uri; } server { listen 443 ssl http2; - server_name video.343.re; - ssl_certificate /etc/ssl/certs/343.re/fullchain.pem; - ssl_certificate_key /etc/ssl/certs/343.re/privkey.pem; + server_name video.343.re; # your domain + ssl_certificate /etc/ssl/certs/343.re/fullchain.pem; # TLS certificate of your domain + ssl_certificate_key /etc/ssl/certs/343.re/privkey.pem; # TLS private key of your domain location / { proxy_set_header Host $http_host; proxy_pass http://127.0.0.1:24488; diff --git a/init.sh b/init.sh index a9c595e..a73391a 100644 --- a/init.sh +++ b/init.sh @@ -1,3 +1,6 @@ +if [ -n "$TITLE" ]; then + sed -i "/^appName:/cappName: $TITLE" /var/www/alltube/config/config.yml +fi /usr/sbin/php-fpm7 /usr/sbin/nginx read -n 1