💾 Archived View for code.lanterne.chilliet.eu › vendor › mcmic › gemini-server › gemini-example.php captured on 2022-04-29 at 12:36:58.

View Raw

More Information

⬅️ Previous capture (2021-11-30)

-=-=-=-=-=-=-

<?php

require __DIR__ . '/vendor/autoload.php';

use MCMic\Gemini;

$server = new Gemini\Server();

$server->addHandler(
    new Gemini\Files\RequestHandler('myserver.example.com', __DIR__ . '/example.com-cert.pem', __DIR__ . '/root', ['*.gmi'])
);

$server->serve();