open20/amos-videoconference

此包的最新版本(1.0.7)没有提供许可证信息。

Amos Videoconference

1.0.7 2020-05-27 18:22 UTC

This package is not auto-updated.

Last update: 2024-09-18 03:04:36 UTC


README

用于E015公共模块的插件。

安装

1. 安装此扩展的首选方式是通过composer

运行以下命令:

composer require open20/amos-videoconference

或者将以下行添加到你的composer.json文件的require部分:

"open20/amos-videoconference": "dev-master"

2. 将模块添加到主配置中的公共部分

<?php
'modules' => [
    'videoconference' => [
        'class' => 'open20\amos\videoconference\AmosVideoconference',
        'rbacEnabled' => false,
		'jitsiDomain' => 'jitsi-server.example.com',
    ],
],

jitsiDomain设置为Jitsi服务器地址。

3. 应用迁移

php yii migrate/up --migrationPath=@vendor/open20/amos-videoconference/src/migrations

或者将以下行添加到控制台中的迁移配置

<?php
return [
    '@vendor/open20/amos-videoconference/src/migrations',
];

4. 控制台发送电子邮件的配置

在/console/component-others.php中插入

    'urlManager' => [
        'class' => 'yii\web\UrlManager',
    'baseUrl' => '/',
    'hostInfo' => 'http://example.org',
        // Disable index.php
        'showScriptName' => false,
        // Disable r= routes
        'enablePrettyUrl' => true,
        'rules' => array(
            '<module:[\w-]+>/<controller:[\w-]+>/<action:[\w-]+>/<id:\d+>] => <module>/<controller>/<action>',
        ),
    ],

将参数'hostInfo'更改为应用程序的基础URL,这是在电子邮件模板中插入图像所必需的。

5. 定时任务的控制台命令

启动定时任务的控制台命令是

php yii videoconference/cron/start_video_conference
php yii videoconference/cron/send_email_reminder