1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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="Content-Type" content="text/html; charset=utf-8" />
  6. <title>How to setup result proxy &#8212; searx 0.12.0 documentation</title>
  7. <link rel="stylesheet" href="../_static/style.css" type="text/css" />
  8. <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
  9. <script type="text/javascript">
  10. var DOCUMENTATION_OPTIONS = {
  11. URL_ROOT: '../',
  12. VERSION: '0.12.0',
  13. COLLAPSE_INDEX: false,
  14. FILE_SUFFIX: '.html',
  15. HAS_SOURCE: true,
  16. SOURCELINK_SUFFIX: '.txt'
  17. };
  18. </script>
  19. <script type="text/javascript" src="../_static/jquery.js"></script>
  20. <script type="text/javascript" src="../_static/underscore.js"></script>
  21. <script type="text/javascript" src="../_static/doctools.js"></script>
  22. <link rel="index" title="Index" href="../genindex.html" />
  23. <link rel="search" title="Search" href="../search.html" />
  24. <link rel="next" title="Development Quickstart" href="../dev/quickstart.html" />
  25. <link rel="prev" title="How to protect an instance" href="filtron.html" />
  26. <link media="only screen and (max-device-width: 480px)" href="../_static/small_flask.css" type= "text/css" rel="stylesheet" />
  27. <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9">
  28. </head>
  29. <body>
  30. <div class="document">
  31. <div class="documentwrapper">
  32. <div class="bodywrapper">
  33. <div class="body" role="main">
  34. <div class="section" id="how-to-setup-result-proxy">
  35. <h1>How to setup result proxy<a class="headerlink" href="#how-to-setup-result-proxy" title="Permalink to this headline">¶</a></h1>
  36. <p>By default searx can only act as an image proxy for result images,
  37. but it is possible to proxify all the result URLs with an external service,
  38. <a class="reference external" href="https://github.com/asciimoo/morty">morty</a>.</p>
  39. <p>To use this feature, morty has to be installed and activated in searx’s <code class="docutils literal"><span class="pre">settings.yml</span></code>.</p>
  40. <p>Add the following snippet to your <code class="docutils literal"><span class="pre">settings.yml</span></code> and restart searx:</p>
  41. <div class="code yaml highlight-default"><div class="highlight"><pre><span></span><span class="n">result_proxy</span><span class="p">:</span>
  42. <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>
  43. <span class="n">key</span> <span class="p">:</span> <span class="n">your_morty_proxy_key</span>
  44. </pre></div>
  45. </div>
  46. <p><code class="docutils literal"><span class="pre">url</span></code> is the address of the running morty service</p>
  47. <p><code class="docutils literal"><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>
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  53. <div class="sphinxsidebarwrapper"><div class="sidebar_container body">
  54. <h1>Searx</h1>
  55. <ul>
  56. <li><a href="../index.html">Home</a></li>
  57. <li><a href="https://github.com/asciimoo/searx">Source</a></li>
  58. <li><a href="../blog/blog.html">Blog</a></li>
  59. <li><a href="https://github.com/asciimoo/searx/wiki">Wiki</a></li>
  60. <li><a href="https://github.com/asciimoo/searx/wiki/Searx-instances">Public instances</a></li>
  61. </ul>
  62. <hr />
  63. <ul>
  64. <li><a href="https://twitter.com/Searx_engine">Twitter</a></li>
  65. <li><a href="https://flattr.com/submit/auto?user_id=asciimoo&url=https://github.com/asciimoo/searx&title=searx&language=&tags=github&category=software">Flattr</a></li>
  66. <li><a href="https://gratipay.com/searx">Gratipay</a></li>
  67. </ul>
  68. </div>
  69. </div>
  70. </div>
  71. <div class="clearer"></div>
  72. </div>
  73. <div class="footer">
  74. &copy; Copyright 2015-2017, Adam Tauber.
  75. </div>
  76. </body>
  77. </html>