Browse Source

remove extra settings, use server conf instead

main
ghost 10 months ago
parent
commit
ae2a1cead6
  1. 1
      example/config.json
  2. 5
      src/server.php

1
example/config.json

@ -15,7 +15,6 @@
}, },
"url": "url":
{ {
"base":"gemini://..",
"source":"http://.." "source":"http://.."
} }
}, },

5
src/server.php

@ -135,8 +135,9 @@ $server->setHandler(
// Append source and homepage link // Append source and homepage link
$lines[] = sprintf( $lines[] = sprintf(
'=> %s %s', '=> gemini://%s%s %s',
$config->dokuwiki->url->base, $config->gemini->server->host,
$config->gemini->server->port == 1965 ? null : ':' . $config->gemini->server->port,
$config->string->main $config->string->main
); );

Loading…
Cancel
Save