chore: keep 'config.php' and 'opensearch.xml' just in root files from .gitignore
This commit is contained in:
parent
e9b23846d3
commit
71ed181043
3 changed files with 53 additions and 2 deletions
42
.docker/templates/config.php
Normal file
42
.docker/templates/config.php
Normal file
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
return (object) array(
|
||||
"google_domain" => "${CONFIG_GOOGLE_DOMAIN}",
|
||||
"google_language" => "${CONFIG_GOOGLE_LANGUAGUE}",
|
||||
"invidious_instance_for_video_results" => "${CONFIG_INVIDIOUS_INSTANCE}",
|
||||
|
||||
"disable_bittorent_search" => ${CONFIG_DISABLE_BITTORRENT_SEARCH},
|
||||
"bittorent_trackers" => "${CONFIG_BITTORRENT_TRACKERS}",
|
||||
"disable_hidden_service_search" => ${CONFIG_HIDDEN_SERVICE_SEARCH},
|
||||
|
||||
"invidious" => "${APP_INVIDIOUS}", // youtube
|
||||
"bibliogram" => "${APP_BIBLIOGRAM}", // instagram
|
||||
"rimgo" => "${APP_RIMGO}", // imgur
|
||||
"scribe" => "${APP_SCRIBE}", // medium
|
||||
"librarian" => "${APP_LIBRARIAN}", // odysee
|
||||
"gothub" => "${APP_GOTHUB}", // github
|
||||
"nitter" => "${APP_NITTER}", // twitter
|
||||
"libreddit" => "${APP_LIBREREDDIT}", // reddit
|
||||
"proxitok" => "${APP_PROXITOK}", // tiktok
|
||||
"wikiless" => "${APP_WIKILESS}", // wikipedia
|
||||
"quetre" => "${APP_QUETRE}", // quora
|
||||
"libremdb" => "${APP_LIBREMDB}", // imdb,
|
||||
"breezewiki" => "${APP_BREEZEWIKI}", // fandom,
|
||||
"anonymousoverflow" => "${APP_ANONYMOUS_OVERFLOW}", // stackoverflow
|
||||
|
||||
"curl_settings" => array(
|
||||
CURLOPT_PROXY => "",
|
||||
CURLOPT_PROXYTYPE => CURLPROXY_HTTP,
|
||||
CURLOPT_RETURNTRANSFER => ${CURLOPT_RETURNTRANSFER},
|
||||
CURLOPT_ENCODING => "${CURLOPT_ENCODING}",
|
||||
CURLOPT_USERAGENT => "${CURLOPT_USERAGENT}",
|
||||
CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4,
|
||||
CURLOPT_CUSTOMREQUEST => "${CURLOPT_CUSTOMREQUEST}",
|
||||
CURLOPT_PROTOCOLS => CURLPROTO_HTTPS | CURLPROTO_HTTP,
|
||||
CURLOPT_REDIR_PROTOCOLS => CURLPROTO_HTTPS | CURLPROTO_HTTP,
|
||||
CURLOPT_MAXREDIRS => ${CURLOPT_MAXREDIRS},
|
||||
CURLOPT_TIMEOUT => ${CURLOPT_TIMEOUT},
|
||||
CURLOPT_VERBOSE => ${CURLOPT_VERBOSE}
|
||||
)
|
||||
|
||||
);
|
||||
?>
|
9
.docker/templates/opensearch.xml
Normal file
9
.docker/templates/opensearch.xml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
|
||||
<ShortName>${OPEN_SEARCH_TITLE}</ShortName>
|
||||
<Description>${OPEN_SEARCH_DESCRIPTION}</Description>
|
||||
<InputEncoding>${OPEN_SEARCH_ENCODING}</InputEncoding>
|
||||
<LongName>${OPEN_SEARCH_LONG_NAME}</LongName>
|
||||
<Url rel="results" type="text/html" method="get" template="${OPEN_SEARCH_HOST}/search.php?q={searchTerms}" />
|
||||
<Url type="application/opensearchdescription+xml" rel="self" template="/opensearch.xml?method=GET" />
|
||||
</OpenSearchDescription>
|
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,2 +1,2 @@
|
|||
config.php
|
||||
opensearch.xml
|
||||
/config.php
|
||||
/opensearch.xml
|
||||
|
|
Loading…
Reference in a new issue