取消https验证,并添加vendor文件夹。
This commit is contained in:
5
vendor/daijie/aria2/playground/aria2.conf
vendored
Normal file
5
vendor/daijie/aria2/playground/aria2.conf
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
dir=/home/aria2
|
||||
enable-rpc=true
|
||||
rpc-allow-origin-all=true
|
||||
rpc-listen-port=6800
|
||||
rpc-listen-all=true
|
||||
24
vendor/daijie/aria2/playground/docker-compose.yml
vendored
Normal file
24
vendor/daijie/aria2/playground/docker-compose.yml
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
version: '2'
|
||||
services:
|
||||
aria2:
|
||||
image: vimagick/aria2
|
||||
volumes:
|
||||
- "./data:/home/aria2"
|
||||
- "./aria2.conf:/etc/aria2/aria2.conf"
|
||||
environment:
|
||||
- TOKEN=e6c3778f-6361-4ed0-b126-f2cf8fca06db
|
||||
php:
|
||||
image: daijie/php7-alpine
|
||||
depends_on:
|
||||
- aria2
|
||||
volumes:
|
||||
- ./www:/var/www
|
||||
nginx:
|
||||
image: nginx:1-alpine
|
||||
depends_on:
|
||||
- php
|
||||
ports:
|
||||
- 8080:80
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/conf.d/default.conf
|
||||
- ./www:/var/www
|
||||
26
vendor/daijie/aria2/playground/nginx.conf
vendored
Normal file
26
vendor/daijie/aria2/playground/nginx.conf
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
server {
|
||||
listen 80;
|
||||
#listen 443 ssl http2;
|
||||
server_name _;
|
||||
#ssl_certificate ssl.crt;
|
||||
#ssl_certificate_key ssl.key;
|
||||
#ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
||||
#ssl_ciphers HIGH:!aNULL:!MD5;
|
||||
keepalive_timeout 120;
|
||||
|
||||
root /var/www;
|
||||
location / {
|
||||
index index.html index.htm index.php;
|
||||
try_files $uri $uri/ $uri.php$is_args$args;
|
||||
}
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass php:9000;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
include fastcgi_params;
|
||||
}
|
||||
|
||||
location /.well-known/acme-challenge/ {
|
||||
try_files $uri /dev/null =404;
|
||||
}
|
||||
}
|
||||
5
vendor/daijie/aria2/playground/www/composer.json
vendored
Normal file
5
vendor/daijie/aria2/playground/www/composer.json
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"require": {
|
||||
"daijie/aria2": "^1.0"
|
||||
}
|
||||
}
|
||||
10
vendor/daijie/aria2/playground/www/index.php
vendored
Normal file
10
vendor/daijie/aria2/playground/www/index.php
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
require 'vendor/autoload.php';
|
||||
$aria2 = new Aria2('http://aria2:6800/jsonrpc', "token:e6c3778f-6361-4ed0-b126-f2cf8fca06db");
|
||||
$status = $aria2->addUri(
|
||||
['https://www.docker.com/sites/default/files/moby.svg']
|
||||
);
|
||||
?>
|
||||
<code>
|
||||
<?=var_export($status, 1);?>
|
||||
</code>
|
||||
Reference in New Issue
Block a user