取消https验证,并添加vendor文件夹。

This commit is contained in:
2025-04-18 12:58:39 +08:00
parent 552909d82b
commit 2d3f7d8511
727 changed files with 132015 additions and 19 deletions

View File

@@ -0,0 +1,5 @@
dir=/home/aria2
enable-rpc=true
rpc-allow-origin-all=true
rpc-listen-port=6800
rpc-listen-all=true

View 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

View 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;
}
}

View File

@@ -0,0 +1,5 @@
{
"require": {
"daijie/aria2": "^1.0"
}
}

View 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>