mirror of https://github.com/searx/searx
Deploy searx/searx to github.com/searx/searx.git:gh-pages
This commit is contained in:
parent
53eddd22fe
commit
e331300bd5
|
@ -141,6 +141,9 @@ Here is an example which makes a complete rebuild:
|
|||
live build
|
||||
----------
|
||||
|
||||
.. _sphinx-autobuild:
|
||||
https://github.com/executablebooks/sphinx-autobuild/blob/master/README.md
|
||||
|
||||
.. sidebar:: docs-clean
|
||||
|
||||
It is recommended to assert a complete rebuild before deploying (use
|
||||
|
@ -156,9 +159,21 @@ changed.
|
|||
$ make docs-live
|
||||
...
|
||||
The HTML pages are in dist/docs.
|
||||
... Serving on http://0.0.0.0:8080
|
||||
... Serving on http://0.0.0.0:8000
|
||||
... Start watching changes
|
||||
|
||||
Live builds are implemented by sphinx-autobuild_. Use environment
|
||||
``$(SPHINXOPTS)`` to pass arguments to the sphinx-autobuild_ command. Except
|
||||
option ``--host`` (which is always set to ``0.0.0.0``) you can pass any
|
||||
argument. E.g to find and use a free port, use:
|
||||
|
||||
.. code:: sh
|
||||
|
||||
$ SPHINXOPTS="--port 0" make docs-live
|
||||
...
|
||||
... Serving on http://0.0.0.0:50593
|
||||
...
|
||||
|
||||
|
||||
.. _deploy on github.io:
|
||||
|
||||
|
|
|
@ -224,8 +224,8 @@ a name of your choice – <em>and/or</em> edit <code class="docutils literal not
|
|||
</div>
|
||||
<div class="ui bottom attached sphinx-tab tab segment sphinx-data-tab-YmFzaA== active docutils container">
|
||||
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>$ sudo -H cp /usr/local/searx/searx-src/searx/settings.yml /etc/searx/settings.yml
|
||||
$ sudo -H sed -i -e s/ultrasecretkey/<span class="se">\e</span>eb004185df6a2eaefd222609da9ae75/g /etc/searx/settings.yml
|
||||
$ sudo -H sed -i -e s/<span class="o">{</span>instance_name<span class="o">}</span>/searx@<span class="se">\t</span>ravis-job-65037331-08b7-414a-a603-4e5d1925f188/g /etc/searx/settings.yml
|
||||
$ sudo -H sed -i -e s/ultrasecretkey/<span class="se">\f</span>67c49c19147657155987c08047a2c91/g /etc/searx/settings.yml
|
||||
$ sudo -H sed -i -e s/<span class="o">{</span>instance_name<span class="o">}</span>/searx@<span class="se">\t</span>ravis-job-cf904d99-2f1f-49a3-ae6d-a28cd49d76c4/g /etc/searx/settings.yml
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -181,10 +181,20 @@ changed.</p>
|
|||
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>$ make docs-live
|
||||
...
|
||||
The HTML pages are in dist/docs.
|
||||
... Serving on http://0.0.0.0:8080
|
||||
... Serving on http://0.0.0.0:8000
|
||||
... Start watching changes
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>Live builds are implemented by <a class="reference external" href="https://github.com/executablebooks/sphinx-autobuild/blob/master/README.md">sphinx-autobuild</a>. Use environment
|
||||
<code class="docutils literal notranslate"><span class="pre">$(SPHINXOPTS)</span></code> to pass arguments to the <a class="reference external" href="https://github.com/executablebooks/sphinx-autobuild/blob/master/README.md">sphinx-autobuild</a> command. Except
|
||||
option <code class="docutils literal notranslate"><span class="pre">--host</span></code> (which is always set to <code class="docutils literal notranslate"><span class="pre">0.0.0.0</span></code>) you can pass any
|
||||
argument. E.g to find and use a free port, use:</p>
|
||||
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>$ <span class="nv">SPHINXOPTS</span><span class="o">=</span><span class="s2">"--port 0"</span> make docs-live
|
||||
...
|
||||
... Serving on http://0.0.0.0:50593
|
||||
...
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="deploy-on-github-io">
|
||||
<span id="id2"></span><h3><a class="toc-backref" href="#id9">deploy on github.io</a><a class="headerlink" href="#deploy-on-github-io" title="Permalink to this headline">¶</a></h3>
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -222,18 +222,18 @@ inspect service
|
|||
show service status and log
|
||||
option
|
||||
set one of the available options
|
||||
apache (http://10.20.0.205/searx)
|
||||
apache (http://10.20.255.26/searx)
|
||||
:install: apache site with a reverse proxy (ProxyPass)
|
||||
:remove: apache site searx.conf
|
||||
nginx (http://10.20.0.205/searx)
|
||||
nginx (http://10.20.255.26/searx)
|
||||
:install: nginx site with a reverse proxy (ProxyPass)
|
||||
:remove: nginx site searx.conf
|
||||
|
||||
filtron rules: /etc/filtron/rules.json
|
||||
|
||||
If needed, set PUBLIC_URL of your WEB service in the '.config.sh' file::
|
||||
PUBLIC_URL : http://10.20.0.205/searx
|
||||
PUBLIC_HOST : 10.20.0.205
|
||||
PUBLIC_URL : http://10.20.255.26/searx
|
||||
PUBLIC_HOST : 10.20.255.26
|
||||
SERVICE_USER : filtron
|
||||
FILTRON_TARGET : 127.0.0.1:8888
|
||||
FILTRON_API : 127.0.0.1:4005
|
||||
|
|
|
@ -195,7 +195,7 @@ install
|
|||
:base: prepare LXC; install basic packages
|
||||
:suite: install LXC searx suite into all (or <name>) containers
|
||||
|
||||
LXC suite: searx --> http://10.20.0.205/searx
|
||||
LXC suite: searx --> http://10.20.255.26/searx
|
||||
suite includes searx, morty & filtron
|
||||
suite images:
|
||||
ubu1604 ubu1804 ubu1910 ubu2004 fedora31 archlinux centos7
|
||||
|
|
|
@ -224,22 +224,22 @@ inspect service
|
|||
option
|
||||
set one of the available options
|
||||
:new-key: set new morty key
|
||||
apache : http://10.20.0.205/morty/
|
||||
apache : http://10.20.255.26/morty/
|
||||
:install: apache site with a reverse proxy (ProxyPass)
|
||||
:remove: apache site morty.conf
|
||||
nginx (http://10.20.0.205/morty/)
|
||||
nginx (http://10.20.255.26/morty/)
|
||||
:install: nginx site with a reverse proxy (ProxyPass)
|
||||
:remove: nginx site morty.conf
|
||||
|
||||
If needed, set the environment variables in the '.config.sh' file::
|
||||
PUBLIC_URL_MORTY: http://10.20.0.205/morty/
|
||||
PUBLIC_URL_MORTY: http://10.20.255.26/morty/
|
||||
MORTY_LISTEN: 127.0.0.1:3000
|
||||
SERVICE_USER: morty
|
||||
|
||||
To activate result and image proxy in searx, edit settings.yml (read:
|
||||
https://searx.github.io/searx/admin/morty.html)::
|
||||
result_proxy:
|
||||
url : http://10.20.0.205/morty/
|
||||
url : http://10.20.255.26/morty/
|
||||
server:
|
||||
image_proxy : True
|
||||
</pre></div>
|
||||
|
|
|
@ -114,8 +114,8 @@ apache
|
|||
searx settings: /etc/searx/settings.yml
|
||||
|
||||
If needed, set PUBLIC_URL of your WEB service in the '.config.sh' file::
|
||||
PUBLIC_URL : http://10.20.0.205/searx
|
||||
SEARX_INSTANCE_NAME : searx@10.20.0.205
|
||||
PUBLIC_URL : http://10.20.255.26/searx
|
||||
SEARX_INSTANCE_NAME : searx@10.20.255.26
|
||||
SERVICE_USER : searx
|
||||
SEARX_INTERNAL_HTTP : http://127.0.0.1:8888
|
||||
</pre></div>
|
||||
|
|
Loading…
Reference in New Issue