Search by

rllngr / kirby-doczer

RLLNGR

Read-only connector that exposes the public content of a Kirby site to a doczer app installed on the same server.

Package info

github.com/RLLNGR/kirby-doczer

Homepage

Issues

Type:kirby-plugin

pkg:composer/rllngr/kirby-doczer

Statistics

Installs: 7

Dependents: 0

Suggesters: 0

Stars: 0

0.2.1 2026-11-27 09:51 UTC

This package is auto-updated.

Last update: 2026-11-27 16:28:21 UTC


README

Connector plugin for doczer: it exposes the public content of a Kirby site — projects, presentation page, images — to a doczer app running on the same server, which composes it into branded PDF folders.

Read-only by design. Nothing confidential lives in Kirby: everything this plugin returns is already publishable.

Requirements

  • Kirby 5 (PHP 8.2+)
  • A doczer instance on the same machine as the site

Installation

composer require rllngr/kirby-doczer

Composer asks once to allow getkirby/composer-installer, which puts the plugin in site/plugins/kirby-doczer. Without Composer, copy the folder there: it needs nothing else.

Configuration

In site/config/config.php:

'rllngr.kirby-doczer.key'               => 'a-long-random-key',   // generated when doczer is installed
'rllngr.kirby-doczer.projects'          => 'projets',             // parent page of the projects
'rllngr.kirby-doczer.presentation'      => 'studio',              // presentation page (optional)
'rllngr.kirby-doczer.presentationField' => 'text',                // its text field (default: the description field)
'rllngr.kirby-doczer.fields'            => [                      // site fields → doczer fields
    'description' => 'text',
    'type'        => 'typology',
    'tags'        => 'tags',
    'gallery'     => 'gallery',   // files field; empty = every image on the page
],
'rllngr.kirby-doczer.drafts'            => true,                  // drafts visible in doczer
'rllngr.kirby-doczer.allowedIps'        => ['127.0.0.1', '::1', '172.16.0.0/12'], // + the Docker network
'rllngr.kirby-doczer.url'               => 'https://doczer.example.com',  // Panel menu entry
'rllngr.kirby-doczer.label'             => 'Folders',             // its label (default: doczer)

Panel menu

Set url and the Panel sidebar gets an entry that opens doczer in a new tab, below System. No url, no entry — and anything that is not an http(s) address is ignored.

Routes

Route Returns
doczer/api/site Site title, URL, language, presentation page, plugin version
doczer/api/projects Summary of every project (title, status, type, tags, cover)
doczer/api/projects/{id} One project, with its rich text as HTML and its images
doczer/api/file?id= The original file, for a doczer that cannot see content/ on disk

Every route answers 403 without the key (X-Doczer-Key header) or from an address outside allowedIps. A video is never printable, so its poster (clip.mp4 → clip-poster.jpg) is used instead.

License

MIT — © Nicolas Rollinger