💾 Archived View for code.lanterne.chilliet.eu › vendor › mcmic › gemini-server › gemini-example.php captured on 2023-06-16 at 16:30:21.

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();