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