blob: ec2a86a3cd2dc4c6c15ebee83c76df587ad05bf1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<?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();
|