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 @@ @@ -15,7 +15,6 @@
},
"url":
{
"base":"gemini://..",
"source":"http://.."
}
},

5
src/server.php

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

Loading…
Cancel
Save