nicosomb/wallabag-camo-bundle

为您的 wallabag 实例添加一个 http 代理以通过 SSL 路由图像。

安装数 2,675

依赖项: 0

建议者: 0

安全: 0

星标: 5

关注者: 2

分支: 0

公开问题: 0

类型:symfony-bundle

1.0.0-alpha.0 2017-03-07 12:02 UTC

This package is auto-updated.

Last update: 2024-09-04 21:46:26 UTC


README

此包允许您通过 camo 为您的 wallabag 图像添加代理。

要求

  • wallabag >= 2.2.2

安装

下载此包

composer require nicosomb/wallabag-camo-bundle

启用包

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new Nicosomb\WallabagCamoBundle\NicosombWallabagCamoBundle(),
        );

        // ...
    }

    // ...
}

配置应用程序

# app/config/config.yml

nicosomb_wallabag_camo:
    key: YOUR_CAMO_KEY
    domain: your-wallabag.herokuapp.com

设置 camo_images_enabled

您需要创建一个新的设置,camo_images_enabled

INSERT INTO `wallabag_internal_setting` (`name`, `value`, `section`) VALUES ('camo_images_enabled', 1, 'misc');