💾 Archived View for code.lanterne.chilliet.eu › vendor › mcmic › gemini-server › gemini-example.php captured on 2024-07-08 at 23:34:42.
⬅️ 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();