config.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <?php
  2. return (object) array(
  3. "google_domain" => "${CONFIG_GOOGLE_DOMAIN}",
  4. "google_language_site" => "${CONFIG_GOOGLE_LANGUAGE_SITE}",
  5. "google_language_results" => "${CONFIG_GOOGLE_LANGUAGE_RESULTS}",
  6. "wikipedia_language" => "${CONFIG_WIKIPEDIA_LANGUAGE}",
  7. "invidious_instance_for_video_results" => "${CONFIG_INVIDIOUS_INSTANCE}",
  8. "disable_bittorent_search" => ${CONFIG_DISABLE_BITTORRENT_SEARCH},
  9. "bittorent_trackers" => "${CONFIG_BITTORRENT_TRACKERS}",
  10. "disable_hidden_service_search" => ${CONFIG_HIDDEN_SERVICE_SEARCH},
  11. "frontends" => array(
  12. "invidious" => array(
  13. "instance_url" => "${APP_INVIDIOUS}",
  14. "project_url" => "https://docs.invidious.io/instances/",
  15. "original_name" => "YouTube",
  16. "original_url" => "youtube.com"
  17. ),
  18. "rimgo" => array(
  19. "instance_url" => "${APP_RIMGO}",
  20. "project_url" => "https://codeberg.org/video-prize-ranch/rimgo#instances",
  21. "original_name" => "Imgur",
  22. "original_url" => "imgur.com"
  23. ),
  24. "scribe" => array(
  25. "instance_url" => "${APP_SCRIBE}",
  26. "project_url" => "https://git.sr.ht/~edwardloveall/scribe/tree/main/docs/instances.md",
  27. "original_name" => "Medium",
  28. "original_url" => "medium.com"
  29. ),
  30. "gothub" => array(
  31. "instance_url" => "${APP_GOTHUB}",
  32. "project_url" => "https://codeberg.org/gothub/gothub/wiki/Instances",
  33. "original_name" => "GitHub",
  34. "original_url" => "github.com"
  35. ),
  36. "librarian" => array(
  37. "instance_url" => "${APP_LIBRARIAN}",
  38. "project_url" => "https://codeberg.org/librarian/librarian#clearnet",
  39. "original_name" => "Odysee",
  40. "original_url" => "odysee.com"
  41. ),
  42. "nitter" => array(
  43. "instance_url" => "${APP_NITTER}",
  44. "project_url" => "https://github.com/zedeus/nitter/wiki/Instances",
  45. "original_name" => "Twitter",
  46. "original_url" => "twitter.com"
  47. ),
  48. "libreddit" => array(
  49. "instance_url" => "${APP_LIBREREDDIT}",
  50. "project_url" => "https://github.com/spikecodes/libreddit",
  51. "original_name" => "Reddit",
  52. "original_url" => "reddit.com"
  53. ),
  54. "proxitok" => array(
  55. "instance_url" => "${APP_PROXITOK}",
  56. "project_url" => "https://github.com/pablouser1/ProxiTok/wiki/Public-instances",
  57. "original_name" => "TikTok",
  58. "original_url" => "tiktok.com"
  59. ),
  60. "wikiless" => array(
  61. "instance_url" => "${APP_WIKILESS}",
  62. "project_url" => "https://github.com/Metastem/wikiless#instances",
  63. "original_name" => "Wikipedia",
  64. "original_url" => "wikipedia.com"
  65. ),
  66. "quetre" => array(
  67. "instance_url" => "${APP_QUETRE}",
  68. "project_url" => "https://github.com/zyachel/quetre",
  69. "original_name" => "Quora",
  70. "original_url" => "quora.com"
  71. ),
  72. "libremdb" => array(
  73. "instance_url" => "${APP_LIBREMDB}",
  74. "project_url" => "https://github.com/zyachel/libremdb",
  75. "original_name" => "IMDb",
  76. "original_url" => "imdb.com"
  77. ),
  78. "breezewiki" => array(
  79. "instance_url" => "${APP_BREEZEWIKI}",
  80. "project_url" => "https://gitdab.com/cadence/breezewiki",
  81. "original_name" => "Fandom",
  82. "original_url" => "fandom.com"
  83. ),
  84. "anonymousoverflow" => array(
  85. "instance_url" => "${APP_ANONYMOUS_OVERFLOW}",
  86. "project_url" => "https://github.com/httpjamesm/AnonymousOverflow#clearnet-instances",
  87. "original_name" => "StackOverflow",
  88. "original_url" => "stackoverflow.com"
  89. ),
  90. "suds" => array(
  91. "instance_url" => "${APP_SUDS}",
  92. "project_url" => "https://git.vern.cc/cobra/Suds/src/branch/main/instances.json",
  93. "original_name" => "Snopes",
  94. "original_url" => "snopes.com"
  95. ),
  96. "biblioreads" => array(
  97. "instance_url" => "${APP_BIBLIOREADS}",
  98. "project_url" => "https://github.com/nesaku/BiblioReads#instances",
  99. "original_name" => "Goodreads",
  100. "original_url" => "goodreads.com"
  101. )
  102. ),
  103. "curl_settings" => array(
  104. CURLOPT_PROXY => "${CURLOPT_PROXY}",
  105. CURLOPT_PROXYTYPE => CURLPROXY_HTTP,
  106. CURLOPT_RETURNTRANSFER => ${CURLOPT_RETURNTRANSFER},
  107. CURLOPT_ENCODING => "${CURLOPT_ENCODING}",
  108. CURLOPT_USERAGENT => "${CURLOPT_USERAGENT}",
  109. CURLOPT_IPRESOLVE => CURL_IPRESOLVE_WHATEVER,
  110. CURLOPT_CUSTOMREQUEST => "${CURLOPT_CUSTOMREQUEST}",
  111. CURLOPT_PROTOCOLS => CURLPROTO_HTTPS | CURLPROTO_HTTP,
  112. CURLOPT_REDIR_PROTOCOLS => CURLPROTO_HTTPS | CURLPROTO_HTTP,
  113. CURLOPT_MAXREDIRS => ${CURLOPT_MAXREDIRS},
  114. CURLOPT_TIMEOUT => ${CURLOPT_TIMEOUT},
  115. CURLOPT_VERBOSE => ${CURLOPT_VERBOSE}
  116. )
  117. );
  118. ?>