__DIR__ . '/certificate/cert.pem', 'key' => __DIR__ . '/certificate/key.rsa', 'passphrase' => '', ], '0.0.0.0' ); $server->onRequest(new DocumentServer( documentRoot: realpath($_ENV['SERVER_DOCUMENT_ROOT'] ?? './content'), indexFile: $_ENV['SERVER_INDEX_FILE'] ?? 'index.gmi', useDirectoryListing: boolval($_ENV['SERVER_USE_DIRECTORY_LISTING'] ?? false) )); $server->listen();