installation.html 26KB

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.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="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>
  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">babel</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="n">lazy</span><span class="o">-</span><span class="n">apps</span> <span class="o">=</span> <span class="n">true</span>
  124. <span class="n">enable</span><span class="o">-</span><span class="n">threads</span> <span class="o">=</span> <span class="n">true</span>
  125. <span class="c1"># Module to import</span>
  126. <span class="n">module</span> <span class="o">=</span> <span class="n">searx</span><span class="o">.</span><span class="n">webapp</span>
  127. <span class="c1"># Virtualenv and python path</span>
  128. <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>
  129. <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>
  130. <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>
  131. </pre></div>
  132. </div>
  133. <p>Activate the uwsgi application and restart:</p>
  134. <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>
  135. <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>
  136. <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>
  137. </pre></div>
  138. </div>
  139. </div>
  140. <div class="section" id="web-server">
  141. <h2><a class="toc-backref" href="#id8">Web server</a><a class="headerlink" href="#web-server" title="Permalink to this headline">¶</a></h2>
  142. <div class="section" id="with-nginx">
  143. <h3><a class="toc-backref" href="#id9">with nginx</a><a class="headerlink" href="#with-nginx" title="Permalink to this headline">¶</a></h3>
  144. <p>If nginx is not installed (uwsgi will not work with the package
  145. nginx-light):</p>
  146. <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>
  147. </pre></div>
  148. </div>
  149. <div class="section" id="hosted-at">
  150. <h4>Hosted at /<a class="headerlink" href="#hosted-at" title="Permalink to this headline">¶</a></h4>
  151. <p>Create the configuration file /etc/nginx/sites-available/searx with this
  152. content:</p>
  153. <div class="code nginx highlight-default"><div class="highlight"><pre><span></span><span class="n">server</span> <span class="p">{</span>
  154. <span class="n">listen</span> <span class="mi">80</span><span class="p">;</span>
  155. <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>
  156. <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>
  157. <span class="n">location</span> <span class="o">/</span> <span class="p">{</span>
  158. <span class="n">include</span> <span class="n">uwsgi_params</span><span class="p">;</span>
  159. <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>
  160. <span class="p">}</span>
  161. <span class="p">}</span>
  162. </pre></div>
  163. </div>
  164. <p>Restart service:</p>
  165. <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>
  166. <span class="n">sudo</span> <span class="n">service</span> <span class="n">uwsgi</span> <span class="n">restart</span>
  167. </pre></div>
  168. </div>
  169. </div>
  170. <div class="section" id="from-subdirectory-url-searx">
  171. <h4>from subdirectory URL (/searx)<a class="headerlink" href="#from-subdirectory-url-searx" title="Permalink to this headline">¶</a></h4>
  172. <p>Add this configuration in the server config file
  173. /etc/nginx/sites-enabled/default:</p>
  174. <div class="code nginx highlight-default"><div class="highlight"><pre><span></span>location = /searx { rewrite ^ /searx/; }
  175. location /searx {
  176. try_files $uri @searx;
  177. }
  178. location @searx {
  179. uwsgi_param SCRIPT_NAME /searx;
  180. include uwsgi_params;
  181. uwsgi_modifier1 30;
  182. uwsgi_pass unix:/run/uwsgi/app/searx/socket;
  183. }
  184. </pre></div>
  185. </div>
  186. <p>OR</p>
  187. <p>using reverse proxy
  188. (Please, note that reverse proxy advised to be used in case of single-user or low-traffic instances.)</p>
  189. <div class="code nginx highlight-default"><div class="highlight"><pre><span></span>location /searx {
  190. proxy_pass http://127.0.0.1:8888;
  191. proxy_set_header Host $host;
  192. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  193. proxy_set_header X-Scheme $scheme;
  194. proxy_set_header X-Script-Name /searx;
  195. proxy_buffering off;
  196. }
  197. </pre></div>
  198. </div>
  199. <p>Enable base_url in searx/settings.yml</p>
  200. <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>
  201. </pre></div>
  202. </div>
  203. <p>Restart service:</p>
  204. <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>
  205. <span class="n">sudo</span> <span class="n">service</span> <span class="n">uwsgi</span> <span class="n">restart</span>
  206. </pre></div>
  207. </div>
  208. <div class="section" id="disable-logs">
  209. <h5>disable logs<a class="headerlink" href="#disable-logs" title="Permalink to this headline">¶</a></h5>
  210. <p>for better privacy you can disable nginx logs about searx.</p>
  211. <p>how to proceed: below <code class="docutils literal"><span class="pre">uwsgi_pass</span></code> in
  212. /etc/nginx/sites-available/default add</p>
  213. <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>
  214. <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>
  215. </pre></div>
  216. </div>
  217. <p>Restart service:</p>
  218. <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>
  219. </pre></div>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. <div class="section" id="with-apache">
  225. <h3><a class="toc-backref" href="#id10">with apache</a><a class="headerlink" href="#with-apache" title="Permalink to this headline">¶</a></h3>
  226. <p>Add wsgi mod:</p>
  227. <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>
  228. <span class="n">sudo</span> <span class="n">a2enmod</span> <span class="n">uwsgi</span>
  229. </pre></div>
  230. </div>
  231. <p>Add this configuration in the file /etc/apache2/apache2.conf:</p>
  232. <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>
  233. <span class="n">Options</span> <span class="n">FollowSymLinks</span> <span class="n">Indexes</span>
  234. <span class="n">SetHandler</span> <span class="n">uwsgi</span><span class="o">-</span><span class="n">handler</span>
  235. <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>
  236. <span class="o">&lt;/</span><span class="n">Location</span><span class="o">&gt;</span>
  237. </pre></div>
  238. </div>
  239. <p>Note that if your instance of searx is not at the root, you should
  240. change <code class="docutils literal"><span class="pre">&lt;Location</span> <span class="pre">/&gt;</span></code> by the location of your instance, like
  241. <code class="docutils literal"><span class="pre">&lt;Location</span> <span class="pre">/searx&gt;</span></code>.</p>
  242. <p>Restart Apache:</p>
  243. <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>
  244. </pre></div>
  245. </div>
  246. <div class="section" id="id2">
  247. <h4>disable logs<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h4>
  248. <p>For better privacy you can disable Apache logs.</p>
  249. <p>WARNING: not tested</p>
  250. <p>WARNING: you can only disable logs for the whole (virtual) server not
  251. for a specific path.</p>
  252. <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>
  253. <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>
  254. </pre></div>
  255. </div>
  256. <p>Restart Apache:</p>
  257. <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>
  258. </pre></div>
  259. </div>
  260. </div>
  261. </div>
  262. </div>
  263. <div class="section" id="how-to-update">
  264. <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>
  265. <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>
  266. <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>
  267. <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>
  268. <span class="n">git</span> <span class="n">stash</span>
  269. <span class="n">git</span> <span class="n">pull</span> <span class="n">origin</span> <span class="n">master</span>
  270. <span class="n">git</span> <span class="n">stash</span> <span class="n">apply</span>
  271. <span class="o">./</span><span class="n">manage</span><span class="o">.</span><span class="n">sh</span> <span class="n">update_packages</span>
  272. <span class="n">sudo</span> <span class="n">service</span> <span class="n">uwsgi</span> <span class="n">restart</span>
  273. </pre></div>
  274. </div>
  275. </div>
  276. <div class="section" id="docker">
  277. <h2><a class="toc-backref" href="#id12">Docker</a><a class="headerlink" href="#docker" title="Permalink to this headline">¶</a></h2>
  278. <p>Make sure you have installed Docker. For instance, you can deploy searx like this:</p>
  279. <div class="code sh highlight-default"><div class="highlight"><pre><span></span>docker pull wonderfall/searx
  280. docker run -d --name searx -p $PORT:8888 wonderfall/searx
  281. </pre></div>
  282. </div>
  283. <p>Go to <a class="reference external" href="http://localhost:$PORT">http://localhost:$PORT</a>.</p>
  284. <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>
  285. <p>It’s also possible to build searx from the embedded Dockerfile.</p>
  286. <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>
  287. <span class="n">cd</span> <span class="n">searx</span>
  288. <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>
  289. </pre></div>
  290. </div>
  291. </div>
  292. </div>
  293. <div class="section" id="references">
  294. <h1><a class="toc-backref" href="#id13">References</a><a class="headerlink" href="#references" title="Permalink to this headline">¶</a></h1>
  295. <blockquote>
  296. <div><ul class="simple">
  297. <li><a class="reference external" href="https://about.okhin.fr/posts/Searx/">https://about.okhin.fr/posts/Searx/</a> with some additions</li>
  298. <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>
  299. </ul>
  300. </div></blockquote>
  301. </div>
  302. </div>
  303. </div>
  304. </div>
  305. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  306. <div class="sphinxsidebarwrapper"><div class="sidebar_container body">
  307. <h1>Searx</h1>
  308. <ul>
  309. <li><a href="../../index.html">Home</a></li>
  310. <li><a href="https://github.com/asciimoo/searx">Source</a></li>
  311. <li><a href="../../blog/blog.html">Blog</a></li>
  312. <li><a href="https://github.com/asciimoo/searx/wiki">Wiki</a></li>
  313. <li><a href="https://github.com/asciimoo/searx/wiki/Searx-instances">Public instances</a></li>
  314. </ul>
  315. <hr />
  316. <ul>
  317. <li><a href="https://twitter.com/Searx_engine">Twitter</a></li>
  318. <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>
  319. <li><a href="https://gratipay.com/searx">Gratipay</a></li>
  320. </ul>
  321. </div>
  322. </div>
  323. </div>
  324. <div class="clearer"></div>
  325. </div>
  326. <div class="footer">
  327. &copy; Copyright 2015-2017, Adam Tauber.
  328. </div>
  329. </body>
  330. </html>