Merge pull request #210 from codedipper/main
gist support with gothub, goodreads to biblioreads
This commit is contained in:
commit
b0ce09abbd
6 changed files with 21 additions and 1 deletions
|
@ -111,6 +111,12 @@
|
||||||
"project_url" => "https://git.vern.cc/cobra/Suds/src/branch/main/instances.json",
|
"project_url" => "https://git.vern.cc/cobra/Suds/src/branch/main/instances.json",
|
||||||
"original_name" => "Snopes",
|
"original_name" => "Snopes",
|
||||||
"original_url" => "snopes.com"
|
"original_url" => "snopes.com"
|
||||||
|
),
|
||||||
|
"biblioreads" => array(
|
||||||
|
"instance_url" => "",
|
||||||
|
"project_url" => "https://github.com/nesaku/BiblioReads#instances",
|
||||||
|
"original_name" => "Goodreads",
|
||||||
|
"original_url" => "goodreads.com"
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|
||||||
|
|
|
@ -120,6 +120,7 @@ This docker image was developed with high configurability in mind, so here is th
|
||||||
| APP_BREEZEWIKI | "" | string | Integration with external self-hosted apps, configure the desired host. |
|
| APP_BREEZEWIKI | "" | string | Integration with external self-hosted apps, configure the desired host. |
|
||||||
| APP_ANONYMOUS_OVERFLOW | "" | string | Integration with external self-hosted apps, configure the desired host. |
|
| APP_ANONYMOUS_OVERFLOW | "" | string | Integration with external self-hosted apps, configure the desired host. |
|
||||||
| APP_SUDS | "" | string | Integration with external self-hosted apps, configure the desired host. |
|
| APP_SUDS | "" | string | Integration with external self-hosted apps, configure the desired host. |
|
||||||
|
| APP_BIBLIOREADS | "" | string | Integration with external self-hosted apps, configure the desired host. |
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,7 @@ export APP_LIBREMDB=${APP_LIBREMDB:-""}
|
||||||
export APP_BREEZEWIKI=${APP_BREEZEWIKI:-""}
|
export APP_BREEZEWIKI=${APP_BREEZEWIKI:-""}
|
||||||
export APP_ANONYMOUS_OVERFLOW=${APP_ANONYMOUS_OVERFLOW:-""}
|
export APP_ANONYMOUS_OVERFLOW=${APP_ANONYMOUS_OVERFLOW:-""}
|
||||||
export APP_SUDS=${APP_SUDS:-""}
|
export APP_SUDS=${APP_SUDS:-""}
|
||||||
|
export APP_BIBLIOREADS=${APP_BIBLIOREADS:-""}
|
||||||
|
|
||||||
# GNU/Curl configurations. Leave 'CURLOPT_PROXY' blank whether you don't need to use a proxy for requests
|
# GNU/Curl configurations. Leave 'CURLOPT_PROXY' blank whether you don't need to use a proxy for requests
|
||||||
# Generally, a proxy is needed when your IP address is blocked by search engines in response to multiple requests within a short time frame. In these cases, it is recommended to use rotating proxies
|
# Generally, a proxy is needed when your IP address is blocked by search engines in response to multiple requests within a short time frame. In these cases, it is recommended to use rotating proxies
|
||||||
|
|
|
@ -97,8 +97,13 @@
|
||||||
"project_url" => "https://git.vern.cc/cobra/Suds/src/branch/main/instances.json",
|
"project_url" => "https://git.vern.cc/cobra/Suds/src/branch/main/instances.json",
|
||||||
"original_name" => "Snopes",
|
"original_name" => "Snopes",
|
||||||
"original_url" => "snopes.com"
|
"original_url" => "snopes.com"
|
||||||
|
),
|
||||||
|
"biblioreads" => array(
|
||||||
|
"instance_url" => "${APP_BIBLIOREADS}",
|
||||||
|
"project_url" => "https://github.com/nesaku/BiblioReads#instances",
|
||||||
|
"original_name" => "Goodreads",
|
||||||
|
"original_url" => "goodreads.com"
|
||||||
)
|
)
|
||||||
|
|
||||||
),
|
),
|
||||||
|
|
||||||
"curl_settings" => array(
|
"curl_settings" => array(
|
||||||
|
|
|
@ -35,6 +35,8 @@ ENV APP_LIBREMDB=""
|
||||||
ENV APP_BREEZEWIKI=""
|
ENV APP_BREEZEWIKI=""
|
||||||
ENV APP_ANONYMOUS_OVERFLOW=""
|
ENV APP_ANONYMOUS_OVERFLOW=""
|
||||||
ENV APP_SUDS=""
|
ENV APP_SUDS=""
|
||||||
|
ENV APP_BIBLIOREADS=""
|
||||||
|
|
||||||
|
|
||||||
# GNU/Curl configurations. Leave 'CURLOPT_PROXY' blank whether you don't need to use a proxy for requests
|
# GNU/Curl configurations. Leave 'CURLOPT_PROXY' blank whether you don't need to use a proxy for requests
|
||||||
# Generally, a proxy is needed when your IP address is blocked by search engines in response to multiple requests within a short time frame. In these cases, it is recommended to use rotating proxies
|
# Generally, a proxy is needed when your IP address is blocked by search engines in response to multiple requests within a short time frame. In these cases, it is recommended to use rotating proxies
|
||||||
|
|
|
@ -51,6 +51,11 @@
|
||||||
$url = $frontend . "/" . $wiki_name . explode($original, $url)[1];
|
$url = $frontend . "/" . $wiki_name . explode($original, $url)[1];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (strpos($url, "gist.github.com") !== false)
|
||||||
|
{
|
||||||
|
$gist_path = explode("gist.github.com", $url)[1];
|
||||||
|
$url = $frontend . "/gist" . $gist_path;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$url = $frontend . explode($original, $url)[1];
|
$url = $frontend . explode($original, $url)[1];
|
||||||
|
|
Loading…
Reference in a new issue