From 71ed1810432a43eac323691f27595f4e1a707419 Mon Sep 17 00:00:00 2001 From: juniorbotelho Date: Sat, 11 Feb 2023 00:41:34 -0300 Subject: [PATCH] chore: keep 'config.php' and 'opensearch.xml' just in root files from .gitignore --- .docker/templates/config.php | 42 ++++++++++++++++++++++++++++++++ .docker/templates/opensearch.xml | 9 +++++++ .gitignore | 4 +-- 3 files changed, 53 insertions(+), 2 deletions(-) create mode 100644 .docker/templates/config.php create mode 100644 .docker/templates/opensearch.xml diff --git a/.docker/templates/config.php b/.docker/templates/config.php new file mode 100644 index 0000000..dc2d7d6 --- /dev/null +++ b/.docker/templates/config.php @@ -0,0 +1,42 @@ + "${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} + ) + + ); +?> diff --git a/.docker/templates/opensearch.xml b/.docker/templates/opensearch.xml new file mode 100644 index 0000000..7ce6c00 --- /dev/null +++ b/.docker/templates/opensearch.xml @@ -0,0 +1,9 @@ + + + ${OPEN_SEARCH_TITLE} + ${OPEN_SEARCH_DESCRIPTION} + ${OPEN_SEARCH_ENCODING} + ${OPEN_SEARCH_LONG_NAME} + + + diff --git a/.gitignore b/.gitignore index 0e93954..4d4ce91 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -config.php -opensearch.xml +/config.php +/opensearch.xml