blob: c90942a1bf26b239b56544346773c4d896ab534a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<?php
use GeminiFoundation\Server;
use GeminiFoundation\Server\RequestHandlers\DocumentServer;
require dirname(__DIR__) . '/vendor/autoload.php';
$server = new Server(
[
'file' => __DIR__ . '/cert.pem',
'key' => __DIR__ . '/key.rsa',
'passphrase' => '',
],
);
$server->onRequest(new DocumentServer(__DIR__));
$server->listen();
|