morty.html 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <title>How to setup result proxy &#8212; Searx Documentation (Searx-1.1.0.tex)</title>
  8. <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
  9. <link rel="stylesheet" type="text/css" href="../_static/searx.css" />
  10. <link rel="stylesheet" type="text/css" href="../_static/tabs.css" />
  11. <script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script>
  12. <script src="../_static/jquery.js"></script>
  13. <script src="../_static/underscore.js"></script>
  14. <script src="../_static/_sphinx_javascript_frameworks_compat.js"></script>
  15. <script src="../_static/doctools.js"></script>
  16. <script src="../_static/sphinx_highlight.js"></script>
  17. <link rel="index" title="Index" href="../genindex.html" />
  18. <link rel="search" title="Search" href="../search.html" />
  19. <link rel="next" title="Engines" href="engines.html" />
  20. <link rel="prev" title="How to protect an instance" href="filtron.html" />
  21. </head><body>
  22. <div class="related" role="navigation" aria-label="related navigation">
  23. <h3>Navigation</h3>
  24. <ul>
  25. <li class="right" style="margin-right: 10px">
  26. <a href="../genindex.html" title="General Index"
  27. accesskey="I">index</a></li>
  28. <li class="right" >
  29. <a href="../py-modindex.html" title="Python Module Index"
  30. >modules</a> |</li>
  31. <li class="right" >
  32. <a href="engines.html" title="Engines"
  33. accesskey="N">next</a> |</li>
  34. <li class="right" >
  35. <a href="filtron.html" title="How to protect an instance"
  36. accesskey="P">previous</a> |</li>
  37. <li class="nav-item nav-item-0"><a href="../index.html">Searx Documentation (Searx-1.1.0.tex)</a> &#187;</li>
  38. <li class="nav-item nav-item-1"><a href="index.html" accesskey="U">Administrator documentation</a> &#187;</li>
  39. <li class="nav-item nav-item-this"><a href="">How to setup result proxy</a></li>
  40. </ul>
  41. </div>
  42. <div class="document">
  43. <div class="documentwrapper">
  44. <div class="bodywrapper">
  45. <div class="body" role="main">
  46. <section id="how-to-setup-result-proxy">
  47. <span id="searx-morty"></span><h1>How to setup result proxy<a class="headerlink" href="#how-to-setup-result-proxy" title="Permalink to this heading">¶</a></h1>
  48. <aside class="sidebar">
  49. <p class="sidebar-title">further reading</p>
  50. <ul class="simple">
  51. <li><p><a class="reference internal" href="../utils/morty.sh.html#morty-sh"><span class="std std-ref">utils/morty.sh</span></a></p></li>
  52. </ul>
  53. </aside>
  54. <p>By default searx can only act as an image proxy for result images, but it is
  55. possible to proxify all the result URLs with an external service, <a class="reference external" href="https://github.com/asciimoo/morty">morty</a>.</p>
  56. <p>To use this feature, morty has to be installed and activated in searx’s
  57. <code class="docutils literal notranslate"><span class="pre">settings.yml</span></code>. Add the following snippet to your <code class="docutils literal notranslate"><span class="pre">settings.yml</span></code> and
  58. restart searx:</p>
  59. <div class="highlight-yaml notranslate"><div class="highlight"><pre><span></span><span class="nt">result_proxy</span><span class="p">:</span><span class="w"></span>
  60. <span class="w"> </span><span class="nt">url </span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">http://127.0.0.1:3000/</span><span class="w"></span>
  61. <span class="w"> </span><span class="nt">key </span><span class="p">:</span><span class="w"> </span><span class="kt">!!binary</span><span class="w"> </span><span class="s">&quot;insert_your_morty_proxy_key_here&quot;</span><span class="w"></span>
  62. </pre></div>
  63. </div>
  64. <p>Note that the example above (<code class="docutils literal notranslate"><span class="pre">http://127.0.0.1:3000</span></code>) is only for single-user
  65. instances without a HTTP proxy. If your morty service is public, the url is the
  66. address of the reverse proxy (e.g <code class="docutils literal notranslate"><span class="pre">https://example.org/morty</span></code>).</p>
  67. <p>For more information about <em>result proxy</em> have a look at <em>“searx via filtron
  68. plus morty”</em> in the <a class="reference internal" href="installation-nginx.html#nginx-searx-via-filtron-plus-morty"><span class="std std-ref">nginx</span></a> and
  69. <a class="reference internal" href="installation-apache.html#apache-searx-via-filtron-plus-morty"><span class="std std-ref">apache</span></a> sections.</p>
  70. <dl class="simple">
  71. <dt><code class="docutils literal notranslate"><span class="pre">url</span></code></dt><dd><p>Is the address of the running morty service.</p>
  72. </dd>
  73. <dt><code class="docutils literal notranslate"><span class="pre">key</span></code></dt><dd><p>Is an optional argument, see <a class="reference external" href="https://github.com/asciimoo/morty">morty’s README</a> for more information.</p>
  74. </dd>
  75. </dl>
  76. </section>
  77. <div class="clearer"></div>
  78. </div>
  79. </div>
  80. </div>
  81. <span id="sidebar-top"></span>
  82. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  83. <div class="sphinxsidebarwrapper">
  84. <p class="logo"><a href="../index.html">
  85. <img class="logo" src="../_static/searx_logo_small.png" alt="Logo"/>
  86. </a></p>
  87. <h3>Project Links</h3>
  88. <ul>
  89. <li><a href="https://searx.github.io/searx/blog/index.html">Blog</a>
  90. <li><a href="https://github.com/searx/searx">Source</a>
  91. <li><a href="https://github.com/searx/searx/wiki">Wiki</a>
  92. <li><a href="https://twitter.com/Searx_engine">Twitter</a>
  93. <li><a href="https://github.com/searx/searx/issues">Issue Tracker</a>
  94. </ul><h3>Navigation</h3>
  95. <ul>
  96. <li><a href="../index.html">Overview</a>
  97. <ul>
  98. <li><a href="index.html">Administrator documentation</a>
  99. <ul>
  100. <li>Previous: <a href="filtron.html" title="previous chapter">How to protect an instance</a>
  101. <li>Next: <a href="engines.html" title="next chapter">Engines</a></ul>
  102. </li>
  103. </ul>
  104. </li>
  105. </ul>
  106. <div id="searchbox" style="display: none" role="search">
  107. <h3 id="searchlabel">Quick search</h3>
  108. <div class="searchformwrapper">
  109. <form class="search" action="../search.html" method="get">
  110. <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
  111. <input type="submit" value="Go" />
  112. </form>
  113. </div>
  114. </div>
  115. <script>document.getElementById('searchbox').style.display = "block"</script>
  116. </div>
  117. </div>
  118. <div class="clearer"></div>
  119. </div>
  120. <div class="footer" role="contentinfo">
  121. &#169; Copyright 2015-2022, Adam Tauber, Noémi Ványi.
  122. Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 5.3.0.
  123. </div>
  124. <script src="../_static/version_warning_offset.js"></script>
  125. </body>
  126. </html>