morty.html 4.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <title>How to setup result proxy &#8212; searx 0.12.0 documentation</title>
  8. <link rel="stylesheet" href="../_static/style.css" type="text/css" />
  9. <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
  10. <script type="text/javascript" src="../_static/documentation_options.js"></script>
  11. <script type="text/javascript" src="../_static/jquery.js"></script>
  12. <script type="text/javascript" src="../_static/underscore.js"></script>
  13. <script type="text/javascript" src="../_static/doctools.js"></script>
  14. <link rel="index" title="Index" href="../genindex.html" />
  15. <link rel="search" title="Search" href="../search.html" />
  16. <link rel="next" title="Development Quickstart" href="../dev/quickstart.html" />
  17. <link rel="prev" title="How to protect an instance" href="filtron.html" />
  18. <link media="only screen and (max-device-width: 480px)" href="../_static/small_flask.css" type= "text/css" rel="stylesheet" />
  19. <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9">
  20. </head><body>
  21. <div class="document">
  22. <div class="documentwrapper">
  23. <div class="bodywrapper">
  24. <div class="body" role="main">
  25. <div class="section" id="how-to-setup-result-proxy">
  26. <h1>How to setup result proxy<a class="headerlink" href="#how-to-setup-result-proxy" title="Permalink to this headline">¶</a></h1>
  27. <p>By default searx can only act as an image proxy for result images,
  28. but it is possible to proxify all the result URLs with an external service,
  29. <a class="reference external" href="https://github.com/asciimoo/morty">morty</a>.</p>
  30. <p>To use this feature, morty has to be installed and activated in searx’s <code class="docutils literal notranslate"><span class="pre">settings.yml</span></code>.</p>
  31. <p>Add the following snippet to your <code class="docutils literal notranslate"><span class="pre">settings.yml</span></code> and restart searx:</p>
  32. <div class="code yaml highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">result_proxy</span><span class="p">:</span>
  33. <span class="n">url</span> <span class="p">:</span> <span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="mf">127.0</span><span class="o">.</span><span class="mf">0.1</span><span class="p">:</span><span class="mi">3000</span><span class="o">/</span>
  34. <span class="n">key</span> <span class="p">:</span> <span class="n">your_morty_proxy_key</span>
  35. </pre></div>
  36. </div>
  37. <p><code class="docutils literal notranslate"><span class="pre">url</span></code> is the address of the running morty service</p>
  38. <p><code class="docutils literal notranslate"><span class="pre">key</span></code> is an optional argument, see <a class="reference external" href="https://github.com/asciimoo/morty">morty’s README</a> for more information.</p>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  44. <div class="sphinxsidebarwrapper"><div class="sidebar_container body">
  45. <h1>Searx</h1>
  46. <ul>
  47. <li><a href="../index.html">Home</a></li>
  48. <li><a href="https://github.com/asciimoo/searx">Source</a></li>
  49. <li><a href="../blog/blog.html">Blog</a></li>
  50. <li><a href="https://github.com/asciimoo/searx/wiki">Wiki</a></li>
  51. <li><a href="https://github.com/asciimoo/searx/wiki/Searx-instances">Public instances</a></li>
  52. </ul>
  53. <hr />
  54. <ul>
  55. <li><a href="https://twitter.com/Searx_engine">Twitter</a></li>
  56. </ul>
  57. </div>
  58. <div role="note" aria-label="source link">
  59. <h3>This Page</h3>
  60. <ul class="this-page-menu">
  61. <li><a href="../_sources/admin/morty.rst.txt"
  62. rel="nofollow">Show Source</a></li>
  63. </ul>
  64. </div>
  65. <div id="searchbox" style="display: none" role="search">
  66. <h3>Quick search</h3>
  67. <div class="searchformwrapper">
  68. <form class="search" action="../search.html" method="get">
  69. <input type="text" name="q" />
  70. <input type="submit" value="Go" />
  71. <input type="hidden" name="check_keywords" value="yes" />
  72. <input type="hidden" name="area" value="default" />
  73. </form>
  74. </div>
  75. </div>
  76. <script type="text/javascript">$('#searchbox').show(0);</script>
  77. </div>
  78. </div>
  79. <div class="clearer"></div>
  80. </div>
  81. <div class="footer">
  82. &copy; Copyright 2015-2017, Adam Tauber.
  83. </div>
  84. </body>
  85. </html>