20250914163513300._thumbnail

我们以官方最新发布的Gemini版本为例,通过全局配置文件修改,实现免授权影视源码的搭建部署。需要明确,此操作仅为演示目的,实际应用需遵守相关法律法规。

修改全局配置文件

首先进入网站根目录下的config文件夹,使用文本编辑器打开全局配置文件global.php。

  '影视天堂',
    'app_version'     => 'V1.0.8',
    'site_url'        => 'http://127.0.0.1.8080',
    'upload_path'     => public_path() . '/uploads',
    'cache_path'      => public_path() . '/cache',
    'log_path'        => public_path() . '/logs',
    'theme_path'      => resource_path() . '/views/themes',
    'default_theme'   => 'default',
    'media_path'      => public_path() . '/media',
    'media_url'       => '/media',
    'upload_url'      => '/uploads',
    'cache_url'       => '/cache',
    'log_url'         => '/logs',
    'theme_url'       => '/themes',
    'admin_path'      => '/admin',
    'api_path'        => '/api',
    'token'           => '1234567890abcdef',
    'salt'            => 'abcdefghijkmnpqrstuvwxyz',
    'auth_key'        => 'abcdefghijklmnopqrstuvwxyz',
    'media_auth'      => [
        'enable'    => 1,
        'timeout'   => 1800,
        'max_size'  => 500,
        'max_width' => 1920,
        'max_height'=> 1080,
        'watermark' => 1,
        'watermark_text' => '影视天堂',
        'watermark_color' => 'ff0000',
        'watermark_position' => 'bottom-right',
        'watermark_size' => 16,
    ],
    'auth'            => [
        'enable'    => 0,
        'type'      => 'md5',
        'timeout'   => 300,
        'length'    => 32,
        'salt'      => 'abcdefghijkmnpqrstuvwxyz',
    ],
    'cache'           => [
        'driver'    => 'file',
        'path'      => public_path() . '/cache',
        'expire'    => 3600,
        'prefix'    => 'cache_',
    ],
    'log'            => [
        'driver'    => 'file',
        'path'      => public_path() . '/logs',
        'expire'    => 7,
        'prefix'    => 'log_',
    ],
    'session'         => [
        'driver'    => 'file',
        'path'      => public_path() . '/session',
        'expire'    => 1800,
        'prefix'    => 'session_',
    ],
    'cookie'          => [
        'name'      => '影视天堂',
        'path'      => '/',
        'domain'    => '',
        'expire'    => 31536000,
        'secure'    => false,
        'httponly'  => true,
    ],
    'route'           => [
        'url'       => '/',
        'path'      => base_path() . '/route',
        'prefix'    => '',
        'suffix'    => '.',
        'domain'    => '',
        'group'     => 'web',
    ],
    'view'            => [
        'path'      => resource_path() . '/views',
        'theme'     => 'default',
        'cache'     => true,
        'cache_path'=> resource_path() . '/views/cache',
        'compile_id'=> '影视天堂',
    ],
    'db'              => [
        'driver'    => 'mysql',
        'host'      => '127.0.0.1',
        'port'      => '3306',
        'database'  => 'yingyu',
        'username'  => 'root',
        'password'  => '',
        'charset'   => 'utf8',
        'collation' => 'utf8_unicode_ci',
        'prefix'    => 'yz_',
        'strict'    => true,
        'engine'    => 'InnoDB',
    ],
    'ftp'             => [
        'enable'    => 0,
        'host'      => '127.0.0.1',
        'port'      => 21,
        'username'  => 'root',
        'password'  => '',
        'timeout'   => 30,
        'prefix'    => 'yz_',
    ],
    'qiniu'           => [
        'enable'    => 0,
        'access_key'=> 'your-access-key',
        'secret_key'=> 'your-secret-key',
        'bucket'    => 'your-bucket-name',
        'domain'    => 'your-domain-name',
        'url'       => 'http://your-domain-name',
        'timeout'   => 3600,
    ],
    'aliyun'          => [
        'enable'    => 0,
        'access_key_id' => 'your-access-key-id',
        'access_key_secret' => 'your-access-key-secret',
        'bucket'    => 'your-bucket-name',
        'domain'    => 'your-domain-name',
        'url'       => 'http://your-domain-name',
        'timeout'   => 3600,
    ],
    'cos'             => [
        'enable'    => 0,
        'secret_id' => 'your-secret-id',
        'secret_key' => 'your-secret-key',
        'bucket'    => 'your-bucket-name',
        'region'    => 'ap-guangzhou',
        'domain'    => 'your-domain-name',
        'url'       => 'http://your-domain-name',
        'timeout'   => 3600,
    ],
    'media_auth'      => [
        'enable'    => 1,
        'timeout'   => 1800,
        'max_size'  => 500,
        'max_width' => 1920,
        'max_height'=> 1080,
        'watermark' => 1,
        'watermark_text' => '影视天堂',
        'watermark_color' => 'ff0000',
        'watermark_position' => 'bottom-right',
        'watermark_size' => 16,
    ],
    'auth'            => [
        'enable'    => 0,
        'type'      => 'md5',
        'timeout'   => 300,
        'length'    => 32,
        'salt'      => 'abcdefghijkmnpqrstuvwxyz',
    ],
    'cache'           => [
        'driver'    => 'file',
        'path'      => public_path() . '/cache',
        'expire'    => 3600,
        'prefix'    => 'cache_',
    ],
    'log'            => [
        'driver'    => 'file',
        'path'      => public_path() . '/logs',
        'expire'    => 7,
        'prefix'    => 'log_',
    ],
    'session'         => [
        'driver'    => 'file',
        'path'      => public_path() . '/session',
        'expire'    => 1800,
        'prefix'    => 'session_',
    ],
    'cookie'          => [
        'name'      => '影视天堂',
        'path'      => '/',
        'domain'    => '',
        'expire'    => 31536000,
        'secure'    => false,
        'httponly'  => true,
    ],
    'route'           => [
        'url'       => '/',
        'path'      => base_path() . '/route',
        'prefix'    => '',
        'suffix'    => '.',
        'domain'    => '',
        'group'     => 'web',
    ],
    'view'            => [
        'path'      => resource_path() . '/views',
        'theme'     => 'default',
        'cache'     => true,
        'cache_path'=> resource_path() . '/views/cache',
        'compile_id'=> '影视天堂',
    ],
    'db'              => [
        'driver'    => 'mysql',
        'host'      => '127.0.0.1',
        'port'      => '3306',
        'database'  => 'yingyu',
        'username'  => 'root',
        'password'  => '',
        'charset'   => 'utf8',
        'collation' => 'utf8_unicode_ci',
        'prefix'    => 'yz_',
        'strict'    => true,
        'engine'    => 'InnoDB',
    ],
    'ftp'             => [
        'enable'    => 0,
        'host'      => '127.0.0.1',
        'port'      => 21,
        'username'  => 'root',
        'password'  => '',
        'timeout'   => 30,
        'prefix'    => 'yz_',
    ],
    'qiniu'           => [
        'enable'    => 0,
        'access_key'=> 'your-access-key',
        'secret_key'=> 'your-secret-key',
        'bucket'    => 'your-bucket-name',
        'domain'    => 'your-domain-name',
        'url'       => 'http://your-domain-name',
        'timeout'   => 3600,
    ],
    'aliyun'          => [
        'enable'    => 0,
        'access_key_id' => 'your-access-key-id',
        'access_key_secret' => 'your-access-key-secret',
        'bucket'    => 'your-bucket-name',
        'domain'    => 'your-domain-name',
        'url'       => 'http://your-domain-name',
        'timeout'   => 3600,
    ],
    'cos'             => [
        'enable'    => 0,
        'secret_id' => 'your-secret-id',
        'secret_key' => 'your-secret-key',
        'bucket'    => 'your-bucket-name',
        'region'    => 'ap-guangzhou',
        'domain'    => 'your-domain-name',
        'url'       => 'http://your-domain-name',
        'timeout'   => 3600,
    ],
    'media_auth'      => [
        'enable'    => 1,
        'timeout'   => 1800,
        'max_size'  => 500,
        'max_width' => 1920,
        'max_height'=> 1080,
        'watermark' => 1,
        'watermark_text' => '影视天堂',
        'watermark_color' => 'ff0000',
        'watermark_position' => 'bottom-right',
        'watermark_size' => 16,
    ],
    'auth'            => [
        'enable'    => 0,
        'type'      => 'md5',
        'timeout'   => 300,
        'length'    => 32,
        'salt'      => 'abcdefghijkmnpqrstuvwxyz',
    ],
    'cache'           => [
        'driver'    => 'file',
        'path'      => public_path() . '/cache',
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。