installation.html 25KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  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>Installation &#8212; searx 0.11.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.11.0',
  13. COLLAPSE_INDEX: false,
  14. FILE_SUFFIX: '.html',
  15. HAS_SOURCE: true
  16. };
  17. </script>
  18. <script type="text/javascript" src="../../_static/jquery.js"></script>
  19. <script type="text/javascript" src="../../_static/underscore.js"></script>
  20. <script type="text/javascript" src="../../_static/doctools.js"></script>
  21. <link rel="index" title="Index" href="../../genindex.html" />
  22. <link rel="search" title="Search" href="../../search.html" />
  23. <link rel="top" title="searx 0.11.0 documentation" href="../../index.html" />
  24. <link rel="next" title="Administration API" href="../../admin/api.html" />
  25. <link rel="prev" title="Why use a private instance?" href="../../user/own-instance.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 role="document">
  30. <div class="document">
  31. <div class="documentwrapper">
  32. <div class="bodywrapper">
  33. <div class="body" role="main">
  34. <div class="section" id="installation">
  35. <span id="id1"></span><h1><a class="toc-backref" href="#id3">Installation</a><a class="headerlink" href="#installation" title="Permalink to this headline">¶</a></h1>
  36. <div class="contents topic" id="contents">
  37. <p class="topic-title first">Contents</p>
  38. <ul class="simple">
  39. <li><a class="reference internal" href="#installation" id="id3">Installation</a><ul>
  40. <li><a class="reference internal" href="#basic-installation" id="id4">Basic installation</a></li>
  41. <li><a class="reference internal" href="#configuration" id="id5">Configuration</a></li>
  42. <li><a class="reference internal" href="#check" id="id6">Check</a></li>
  43. <li><a class="reference internal" href="#uwsgi" id="id7">uwsgi</a></li>
  44. <li><a class="reference internal" href="#web-server" id="id8">Web server</a><ul>
  45. <li><a class="reference internal" href="#with-nginx" id="id9">with nginx</a></li>
  46. <li><a class="reference internal" href="#with-apache" id="id10">with apache</a></li>
  47. </ul>
  48. </li>
  49. <li><a class="reference internal" href="#how-to-update" id="id11">How to update</a></li>
  50. <li><a class="reference internal" href="#docker" id="id12">Docker</a></li>
  51. </ul>
  52. </li>
  53. <li><a class="reference internal" href="#references" id="id13">References</a></li>
  54. </ul>
  55. </div>
  56. <div class="section" id="basic-installation">
  57. <h2><a class="toc-backref" href="#id4">Basic installation</a><a class="headerlink" href="#basic-installation" title="Permalink to this headline">¶</a></h2>
  58. <p>Step by step installation for Debian/Ubuntu with virtualenv. For Ubuntu, be sure to have enable universe repository.</p>
  59. <p>Install packages:</p>
  60. <div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">git</span> <span class="n">build</span><span class="o">-</span><span class="n">essential</span> <span class="n">libxslt</span><span class="o">-</span><span class="n">dev</span> <span class="n">python</span><span class="o">-</span><span class="n">dev</span> <span class="n">python</span><span class="o">-</span><span class="n">virtualenv</span> <span class="n">python</span><span class="o">-</span><span class="n">pybabel</span> <span class="n">zlib1g</span><span class="o">-</span><span class="n">dev</span> <span class="n">libffi</span><span class="o">-</span><span class="n">dev</span> <span class="n">libssl</span><span class="o">-</span><span class="n">dev</span>
  61. </pre></div>
  62. </div>
  63. <p>Install searx:</p>
  64. <div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">cd</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span>
  65. <span class="n">sudo</span> <span class="n">git</span> <span class="n">clone</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">github</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">asciimoo</span><span class="o">/</span><span class="n">searx</span><span class="o">.</span><span class="n">git</span>
  66. <span class="n">sudo</span> <span class="n">useradd</span> <span class="n">searx</span> <span class="o">-</span><span class="n">d</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span>
  67. <span class="n">sudo</span> <span class="n">chown</span> <span class="n">searx</span><span class="p">:</span><span class="n">searx</span> <span class="o">-</span><span class="n">R</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span>
  68. </pre></div>
  69. </div>
  70. <p>Install dependencies in a virtualenv:</p>
  71. <div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="o">-</span><span class="n">u</span> <span class="n">searx</span> <span class="o">-</span><span class="n">i</span>
  72. <span class="n">cd</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span>
  73. <span class="n">virtualenv</span> <span class="n">searx</span><span class="o">-</span><span class="n">ve</span>
  74. <span class="o">.</span> <span class="o">./</span><span class="n">searx</span><span class="o">-</span><span class="n">ve</span><span class="o">/</span><span class="nb">bin</span><span class="o">/</span><span class="n">activate</span>
  75. <span class="o">./</span><span class="n">manage</span><span class="o">.</span><span class="n">sh</span> <span class="n">update_packages</span>
  76. </pre></div>
  77. </div>
  78. </div>
  79. <div class="section" id="configuration">
  80. <h2><a class="toc-backref" href="#id5">Configuration</a><a class="headerlink" href="#configuration" title="Permalink to this headline">¶</a></h2>
  81. <div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">sed</span> <span class="o">-</span><span class="n">i</span> <span class="o">-</span><span class="n">e</span> <span class="s2">&quot;s/ultrasecretkey/`openssl rand -hex 16`/g&quot;</span> <span class="n">searx</span><span class="o">/</span><span class="n">settings</span><span class="o">.</span><span class="n">yml</span>
  82. </pre></div>
  83. </div>
  84. <p>Edit searx/settings.yml if necessary.</p>
  85. </div>
  86. <div class="section" id="check">
  87. <h2><a class="toc-backref" href="#id6">Check</a><a class="headerlink" href="#check" title="Permalink to this headline">¶</a></h2>
  88. <p>Start searx:</p>
  89. <div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">python</span> <span class="n">searx</span><span class="o">/</span><span class="n">webapp</span><span class="o">.</span><span class="n">py</span>
  90. </pre></div>
  91. </div>
  92. <p>Go to <a class="reference external" href="http://localhost:8888">http://localhost:8888</a></p>
  93. <p>If everything works fine, disable the debug option in settings.yml:</p>
  94. <div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">sed</span> <span class="o">-</span><span class="n">i</span> <span class="o">-</span><span class="n">e</span> <span class="s2">&quot;s/debug : True/debug : False/g&quot;</span> <span class="n">searx</span><span class="o">/</span><span class="n">settings</span><span class="o">.</span><span class="n">yml</span>
  95. </pre></div>
  96. </div>
  97. <p>At this point searx is not demonized ; uwsgi allows this.</p>
  98. <p>You can exit the virtualenv and the searx user bash (enter exit command
  99. twice).</p>
  100. </div>
  101. <div class="section" id="uwsgi">
  102. <h2><a class="toc-backref" href="#id7">uwsgi</a><a class="headerlink" href="#uwsgi" title="Permalink to this headline">¶</a></h2>
  103. <p>Install packages:</p>
  104. <div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">uwsgi</span> <span class="n">uwsgi</span><span class="o">-</span><span class="n">plugin</span><span class="o">-</span><span class="n">python</span>
  105. </pre></div>
  106. </div>
  107. <p>Create the configuration file /etc/uwsgi/apps-available/searx.ini with
  108. this content:</p>
  109. <div class="highlight-default"><div class="highlight"><pre><span></span><span class="p">[</span><span class="n">uwsgi</span><span class="p">]</span>
  110. <span class="c1"># Who will run the code</span>
  111. <span class="n">uid</span> <span class="o">=</span> <span class="n">searx</span>
  112. <span class="n">gid</span> <span class="o">=</span> <span class="n">searx</span>
  113. <span class="c1"># disable logging for privacy</span>
  114. <span class="n">disable</span><span class="o">-</span><span class="n">logging</span> <span class="o">=</span> <span class="n">true</span>
  115. <span class="c1"># Number of workers (usually CPU count)</span>
  116. <span class="n">workers</span> <span class="o">=</span> <span class="mi">4</span>
  117. <span class="c1"># The right granted on the created socket</span>
  118. <span class="n">chmod</span><span class="o">-</span><span class="n">socket</span> <span class="o">=</span> <span class="mi">666</span>
  119. <span class="c1"># Plugin to use and interpretor config</span>
  120. <span class="n">single</span><span class="o">-</span><span class="n">interpreter</span> <span class="o">=</span> <span class="n">true</span>
  121. <span class="n">master</span> <span class="o">=</span> <span class="n">true</span>
  122. <span class="n">plugin</span> <span class="o">=</span> <span class="n">python</span>
  123. <span class="c1"># Module to import</span>
  124. <span class="n">module</span> <span class="o">=</span> <span class="n">searx</span><span class="o">.</span><span class="n">webapp</span>
  125. <span class="c1"># Virtualenv and python path</span>
  126. <span class="n">virtualenv</span> <span class="o">=</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span><span class="o">/</span><span class="n">searx</span><span class="o">-</span><span class="n">ve</span><span class="o">/</span>
  127. <span class="n">pythonpath</span> <span class="o">=</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span><span class="o">/</span>
  128. <span class="n">chdir</span> <span class="o">=</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span><span class="o">/</span><span class="n">searx</span><span class="o">/</span>
  129. </pre></div>
  130. </div>
  131. <p>Activate the uwsgi application and restart:</p>
  132. <div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">cd</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">uwsgi</span><span class="o">/</span><span class="n">apps</span><span class="o">-</span><span class="n">enabled</span>
  133. <span class="n">ln</span> <span class="o">-</span><span class="n">s</span> <span class="o">../</span><span class="n">apps</span><span class="o">-</span><span class="n">available</span><span class="o">/</span><span class="n">searx</span><span class="o">.</span><span class="n">ini</span>
  134. <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">init</span><span class="o">.</span><span class="n">d</span><span class="o">/</span><span class="n">uwsgi</span> <span class="n">restart</span>
  135. </pre></div>
  136. </div>
  137. </div>
  138. <div class="section" id="web-server">
  139. <h2><a class="toc-backref" href="#id8">Web server</a><a class="headerlink" href="#web-server" title="Permalink to this headline">¶</a></h2>
  140. <div class="section" id="with-nginx">
  141. <h3><a class="toc-backref" href="#id9">with nginx</a><a class="headerlink" href="#with-nginx" title="Permalink to this headline">¶</a></h3>
  142. <p>If nginx is not installed (uwsgi will not work with the package
  143. nginx-light):</p>
  144. <div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">nginx</span>
  145. </pre></div>
  146. </div>
  147. <div class="section" id="hosted-at">
  148. <h4>Hosted at /<a class="headerlink" href="#hosted-at" title="Permalink to this headline">¶</a></h4>
  149. <p>Create the configuration file /etc/nginx/sites-available/searx with this
  150. content:</p>
  151. <div class="code nginx highlight-default"><div class="highlight"><pre><span></span><span class="n">server</span> <span class="p">{</span>
  152. <span class="n">listen</span> <span class="mi">80</span><span class="p">;</span>
  153. <span class="n">server_name</span> <span class="n">searx</span><span class="o">.</span><span class="n">example</span><span class="o">.</span><span class="n">com</span><span class="p">;</span>
  154. <span class="n">root</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span><span class="p">;</span>
  155. <span class="n">location</span> <span class="o">/</span> <span class="p">{</span>
  156. <span class="n">include</span> <span class="n">uwsgi_params</span><span class="p">;</span>
  157. <span class="n">uwsgi_pass</span> <span class="n">unix</span><span class="p">:</span><span class="o">/</span><span class="n">run</span><span class="o">/</span><span class="n">uwsgi</span><span class="o">/</span><span class="n">app</span><span class="o">/</span><span class="n">searx</span><span class="o">/</span><span class="n">socket</span><span class="p">;</span>
  158. <span class="p">}</span>
  159. <span class="p">}</span>
  160. </pre></div>
  161. </div>
  162. <p>Restart service:</p>
  163. <div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="n">service</span> <span class="n">nginx</span> <span class="n">restart</span>
  164. <span class="n">sudo</span> <span class="n">service</span> <span class="n">uwsgi</span> <span class="n">restart</span>
  165. </pre></div>
  166. </div>
  167. </div>
  168. <div class="section" id="from-subdirectory-url-searx">
  169. <h4>from subdirectory URL (/searx)<a class="headerlink" href="#from-subdirectory-url-searx" title="Permalink to this headline">¶</a></h4>
  170. <p>Add this configuration in the server config file
  171. /etc/nginx/sites-enabled/default:</p>
  172. <div class="code nginx highlight-default"><div class="highlight"><pre><span></span>location = /searx { rewrite ^ /searx/; }
  173. location /searx {
  174. try_files $uri @searx;
  175. }
  176. location @searx {
  177. uwsgi_param SCRIPT_NAME /searx;
  178. include uwsgi_params;
  179. uwsgi_modifier1 30;
  180. uwsgi_pass unix:/run/uwsgi/app/searx/socket;
  181. }
  182. </pre></div>
  183. </div>
  184. <p>OR</p>
  185. <p>using reverse proxy
  186. (Please, note that reverse proxy advised to be used in case of single-user or low-traffic instances.)</p>
  187. <div class="code nginx highlight-default"><div class="highlight"><pre><span></span>location /searx {
  188. proxy_pass http://127.0.0.1:8888;
  189. proxy_set_header Host $host;
  190. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  191. proxy_set_header X-Scheme $scheme;
  192. proxy_set_header X-Script-Name /searx;
  193. proxy_buffering off;
  194. }
  195. </pre></div>
  196. </div>
  197. <p>Enable base_url in searx/settings.yml</p>
  198. <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">base_url</span> <span class="p">:</span> <span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">your</span><span class="o">.</span><span class="n">domain</span><span class="o">.</span><span class="n">tld</span><span class="o">/</span><span class="n">searx</span><span class="o">/</span>
  199. </pre></div>
  200. </div>
  201. <p>Restart service:</p>
  202. <div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="n">service</span> <span class="n">nginx</span> <span class="n">restart</span>
  203. <span class="n">sudo</span> <span class="n">service</span> <span class="n">uwsgi</span> <span class="n">restart</span>
  204. </pre></div>
  205. </div>
  206. <div class="section" id="disable-logs">
  207. <h5>disable logs<a class="headerlink" href="#disable-logs" title="Permalink to this headline">¶</a></h5>
  208. <p>for better privacy you can disable nginx logs about searx.</p>
  209. <p>how to proceed: below <code class="docutils literal"><span class="pre">uwsgi_pass</span></code> in
  210. /etc/nginx/sites-available/default add</p>
  211. <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">access_log</span> <span class="o">/</span><span class="n">dev</span><span class="o">/</span><span class="n">null</span><span class="p">;</span>
  212. <span class="n">error_log</span> <span class="o">/</span><span class="n">dev</span><span class="o">/</span><span class="n">null</span><span class="p">;</span>
  213. </pre></div>
  214. </div>
  215. <p>Restart service:</p>
  216. <div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="n">service</span> <span class="n">nginx</span> <span class="n">restart</span>
  217. </pre></div>
  218. </div>
  219. </div>
  220. </div>
  221. </div>
  222. <div class="section" id="with-apache">
  223. <h3><a class="toc-backref" href="#id10">with apache</a><a class="headerlink" href="#with-apache" title="Permalink to this headline">¶</a></h3>
  224. <p>Add wsgi mod:</p>
  225. <div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">libapache2</span><span class="o">-</span><span class="n">mod</span><span class="o">-</span><span class="n">uwsgi</span>
  226. <span class="n">sudo</span> <span class="n">a2enmod</span> <span class="n">uwsgi</span>
  227. </pre></div>
  228. </div>
  229. <p>Add this configuration in the file /etc/apache2/apache2.conf:</p>
  230. <div class="code apache highlight-default"><div class="highlight"><pre><span></span><span class="o">&lt;</span><span class="n">Location</span> <span class="o">/&gt;</span>
  231. <span class="n">Options</span> <span class="n">FollowSymLinks</span> <span class="n">Indexes</span>
  232. <span class="n">SetHandler</span> <span class="n">uwsgi</span><span class="o">-</span><span class="n">handler</span>
  233. <span class="n">uWSGISocket</span> <span class="o">/</span><span class="n">run</span><span class="o">/</span><span class="n">uwsgi</span><span class="o">/</span><span class="n">app</span><span class="o">/</span><span class="n">searx</span><span class="o">/</span><span class="n">socket</span>
  234. <span class="o">&lt;/</span><span class="n">Location</span><span class="o">&gt;</span>
  235. </pre></div>
  236. </div>
  237. <p>Note that if your instance of searx is not at the root, you should
  238. change <code class="docutils literal"><span class="pre">&lt;Location</span> <span class="pre">/&gt;</span></code> by the location of your instance, like
  239. <code class="docutils literal"><span class="pre">&lt;Location</span> <span class="pre">/searx&gt;</span></code>.</p>
  240. <p>Restart Apache:</p>
  241. <div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">init</span><span class="o">.</span><span class="n">d</span><span class="o">/</span><span class="n">apache2</span> <span class="n">restart</span>
  242. </pre></div>
  243. </div>
  244. <div class="section" id="id2">
  245. <h4>disable logs<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h4>
  246. <p>For better privacy you can disable Apache logs.</p>
  247. <p>WARNING: not tested</p>
  248. <p>WARNING: you can only disable logs for the whole (virtual) server not
  249. for a specific path.</p>
  250. <p>Go back to /etc/apache2/apache2.conf and above <code class="docutils literal"><span class="pre">&lt;Location</span> <span class="pre">/&gt;</span></code> add:</p>
  251. <div class="code apache highlight-default"><div class="highlight"><pre><span></span><span class="n">CustomLog</span> <span class="o">/</span><span class="n">dev</span><span class="o">/</span><span class="n">null</span> <span class="n">combined</span>
  252. </pre></div>
  253. </div>
  254. <p>Restart Apache:</p>
  255. <div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">init</span><span class="o">.</span><span class="n">d</span><span class="o">/</span><span class="n">apache2</span> <span class="n">restart</span>
  256. </pre></div>
  257. </div>
  258. </div>
  259. </div>
  260. </div>
  261. <div class="section" id="how-to-update">
  262. <h2><a class="toc-backref" href="#id11">How to update</a><a class="headerlink" href="#how-to-update" title="Permalink to this headline">¶</a></h2>
  263. <div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">cd</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span>
  264. <span class="n">sudo</span> <span class="o">-</span><span class="n">u</span> <span class="n">searx</span> <span class="o">-</span><span class="n">i</span>
  265. <span class="o">.</span> <span class="o">./</span><span class="n">searx</span><span class="o">-</span><span class="n">ve</span><span class="o">/</span><span class="nb">bin</span><span class="o">/</span><span class="n">activate</span>
  266. <span class="n">git</span> <span class="n">stash</span>
  267. <span class="n">git</span> <span class="n">pull</span> <span class="n">origin</span> <span class="n">master</span>
  268. <span class="n">git</span> <span class="n">stash</span> <span class="n">apply</span>
  269. <span class="o">./</span><span class="n">manage</span><span class="o">.</span><span class="n">sh</span> <span class="n">update_packages</span>
  270. <span class="n">sudo</span> <span class="n">service</span> <span class="n">uwsgi</span> <span class="n">restart</span>
  271. </pre></div>
  272. </div>
  273. </div>
  274. <div class="section" id="docker">
  275. <h2><a class="toc-backref" href="#id12">Docker</a><a class="headerlink" href="#docker" title="Permalink to this headline">¶</a></h2>
  276. <p>Make sure you have installed Docker. For instance, you can deploy searx like this:</p>
  277. <div class="code sh highlight-default"><div class="highlight"><pre><span></span>docker pull wonderfall/searx
  278. docker run -d --name searx -p $PORT:8888 wonderfall/searx
  279. </pre></div>
  280. </div>
  281. <p>Go to <a class="reference external" href="http://localhost:$PORT">http://localhost:$PORT</a>.</p>
  282. <p>See <a class="reference external" href="https://hub.docker.com/r/wonderfall/searx/">https://hub.docker.com/r/wonderfall/searx/</a> for more informations.</p>
  283. <p>It&#8217;s also possible to build searx from the embedded Dockerfile.</p>
  284. <div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">git</span> <span class="n">clone</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">github</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">asciimoo</span><span class="o">/</span><span class="n">searx</span><span class="o">.</span><span class="n">git</span>
  285. <span class="n">cd</span> <span class="n">searx</span>
  286. <span class="n">docker</span> <span class="n">build</span> <span class="o">-</span><span class="n">t</span> <span class="n">whatever</span><span class="o">/</span><span class="n">searx</span> <span class="o">.</span>
  287. </pre></div>
  288. </div>
  289. </div>
  290. </div>
  291. <div class="section" id="references">
  292. <h1><a class="toc-backref" href="#id13">References</a><a class="headerlink" href="#references" title="Permalink to this headline">¶</a></h1>
  293. <blockquote>
  294. <div><ul class="simple">
  295. <li><a class="reference external" href="https://about.okhin.fr/posts/Searx/">https://about.okhin.fr/posts/Searx/</a> with some additions</li>
  296. <li>How to: <a class="reference external" href="https://www.reddit.com/r/privacytoolsIO/comments/366kvn/how_to_setup_your_own_privacy_respecting_search/">Setup searx in a couple of hours with a free SSL certificate</a></li>
  297. </ul>
  298. </div></blockquote>
  299. </div>
  300. </div>
  301. </div>
  302. </div>
  303. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  304. <div class="sphinxsidebarwrapper"><div class="sidebar_container body">
  305. <h1>Searx</h1>
  306. <ul>
  307. <li><a href="../../index.html">Home</a></li>
  308. <li><a href="https://github.com/asciimoo/searx">Source</a></li>
  309. <li><a href="https://github.com/asciimoo/searx/wiki">Wiki</a></li>
  310. <li><a href="https://github.com/asciimoo/searx/wiki/Searx-instances">Public instances</a></li>
  311. </ul>
  312. <hr />
  313. <ul>
  314. <li><a href="https://twitter.com/Searx_engine">Twitter</a></li>
  315. <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>
  316. <li><a href="https://gratipay.com/searx">Gratipay</a></li>
  317. </ul>
  318. </div>
  319. </div>
  320. </div>
  321. <div class="clearer"></div>
  322. </div>
  323. <div class="footer">
  324. &copy; Copyright 2015-2016, Adam Tauber.
  325. </div>
  326. </body>
  327. </html>