27盘多媒体云盘源码


1.选创建个MYSQL数据库,把根目录下的Mysql.sql导入进去

2.修改 ./sys/libs/db.php 修改数据库账号、密码、数据库名字

3.登录后台,修改网站配置(默认后台账号、密码、认证码全部是:111)

4.转码水印LOGO位置 ./packs/ffmpeg/logo.png

5.转码字幕文件位置 ./packs/ffmpeg/zimu.ass

注意:

1.所有转码服务器和网站服务器的PHP环境需要去掉exec、shell_exec这两个禁用函数

2.每增加一个转码服务器,都需要把根目录下的《上传服务器》里面的文件传到转码服务器

3.然后去后台增加服务器即可

4.转码水印LOGO位置 ./ffmpeg/logo.png

5.转码字幕文件位置 ./ffmpeg/zimu.ass
主站的配置:
www.abbtube.com.conf

server {
listen 80;
server_name www.abbtube.com;
location / {
        if ( $request_method = GET )
        {
              rewrite (.*) https://$server_name$1 permanent;
        }
        rewrite (.*) https://$server_name$1 permanent;
     }
}
server
    {
        listen 443;
        server_name www.abbtube.com ;
        index index.html index.htm index.php default.html default.htm default.php;
        root  /home/wwwroot/abbtube;
	    
		ssl on;
        ssl_certificate /usr/local/nginx/conf/ssl/www.abbtube.com/fullchain.cer;
        ssl_certificate_key /usr/local/nginx/conf/ssl/www.abbtube.com/www.abbtube.com.key;
        ssl_session_timeout 5m;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        ssl_prefer_server_ciphers on;
        ssl_ciphers "EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5";
        ssl_session_cache builtin:1000 shared:SSL:10m;
        # openssl dhparam -out /usr/local/nginx/conf/ssl/dhparam.pem 2048
        ssl_dhparam /usr/local/nginx/conf/ssl/dhparam.pem;
		
        #include abbtube.conf;
		include abbtube.conf;
        #error_page   404   /404.html;

        # Deny access to PHP files in specific directory
        #location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }

        location ~ .*\.(txt|ico|css|js|xml|ttf|woff|woff2|svg|eot|otf|jpg|gif|png|html|ts)$ {
         root /home/wwwroot/abbtube/; 
         access_log   off;
         expires      30d;
         }

        include enable-php-pathinfo.conf;
        access_log  /home/wwwlogs/www.abbtube.com.log;
    }

abbtube.conf

location / {
    if (!-e $request_filename) {
        rewrite ^(.*)$ /index.php?/$1 last;
	    break;
    }
}

转码服务器配置
video.abbtube.com.conf

server {
listen 80;
server_name video.abbtube.com;
location / {
        if ( $request_method = GET )
        {
              rewrite (.*) https://$server_name$1 permanent;
        }
        rewrite (.*) https://$server_name$1 permanent;
     }
}
server
    {
        listen 443;
        server_name video.abbtube.com ;
        index index.html index.htm index.php default.html default.htm default.php;
        root  /home/wwwroot/zm;
		
		ssl on;
        ssl_certificate /usr/local/nginx/conf/ssl/video.abbtube.com/fullchain.cer;
        ssl_certificate_key /usr/local/nginx/conf/ssl/video.abbtube.com/video.abbtube.com.key;
        ssl_session_timeout 5m;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        ssl_prefer_server_ciphers on;
        ssl_ciphers "EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5";
        ssl_session_cache builtin:1000 shared:SSL:10m;
        # openssl dhparam -out /usr/local/nginx/conf/ssl/dhparam.pem 2048
        ssl_dhparam /usr/local/nginx/conf/ssl/dhparam.pem;
		
        include rewrite/none.conf;
        #error_page   404   /404.html;
        
		location / { if ( $request_method = 'OPTIONS' ) {
               add_header access-control-allow-headers range;
               add_header access-control-allow-methods GET,POST,HEAD,OPTIONS;
               add_header Access-Control-Allow-Origin *;
               return 200;
            }
               add_header Access-Control-Allow-Origin *;
        }

        include enable-php-pathinfo.conf;

        access_log  /home/wwwlogs/video.abbtube.com.log;
    }
资源下载

此资源下载价格为500D币立即购买

客服邮箱:[email protected]
点赞