mirror of
https://github.com/searx/searx
synced 2025-02-22 06:37:55 +01:00
Deploying to gh-pages from @ 312a51566c2dad852d3d72c563ba66ceeac06985 🚀
This commit is contained in:
parent
911059f5ac
commit
4029a39586
@ -74,7 +74,7 @@ Example to run it from python:
|
||||
... engine_cs = list(searx.engines.categories.keys())
|
||||
... # load module
|
||||
... spec = importlib.util.spec_from_file_location(
|
||||
... 'utils.standalone_searx', 'utils/standalone_searx.py')
|
||||
... 'utils.standalone_searx', 'searx_extra/standalone_searx.py')
|
||||
... sas = importlib.util.module_from_spec(spec)
|
||||
... spec.loader.exec_module(sas)
|
||||
... # use function from module
|
||||
|
File diff suppressed because one or more lines are too long
@ -77,7 +77,7 @@
|
||||
<span class="gp">... </span><span class="n">engine_cs</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">searx</span><span class="o">.</span><span class="n">engines</span><span class="o">.</span><span class="n">categories</span><span class="o">.</span><span class="n">keys</span><span class="p">())</span>
|
||||
<span class="gp">... </span><span class="c1"># load module</span>
|
||||
<span class="gp">... </span><span class="n">spec</span> <span class="o">=</span> <span class="n">importlib</span><span class="o">.</span><span class="n">util</span><span class="o">.</span><span class="n">spec_from_file_location</span><span class="p">(</span>
|
||||
<span class="gp">... </span> <span class="s1">'utils.standalone_searx'</span><span class="p">,</span> <span class="s1">'utils/standalone_searx.py'</span><span class="p">)</span>
|
||||
<span class="gp">... </span> <span class="s1">'utils.standalone_searx'</span><span class="p">,</span> <span class="s1">'searx_extra/standalone_searx.py'</span><span class="p">)</span>
|
||||
<span class="gp">... </span><span class="n">sas</span> <span class="o">=</span> <span class="n">importlib</span><span class="o">.</span><span class="n">util</span><span class="o">.</span><span class="n">module_from_spec</span><span class="p">(</span><span class="n">spec</span><span class="p">)</span>
|
||||
<span class="gp">... </span><span class="n">spec</span><span class="o">.</span><span class="n">loader</span><span class="o">.</span><span class="n">exec_module</span><span class="p">(</span><span class="n">sas</span><span class="p">)</span>
|
||||
<span class="gp">... </span><span class="c1"># use function from module</span>
|
||||
|
@ -184,18 +184,18 @@ inspect service
|
||||
show service status and log
|
||||
option
|
||||
set one of the available options
|
||||
apache (http://fv-az144-910/searx)
|
||||
apache (http://fv-az240-690/searx)
|
||||
:install: apache site with a reverse proxy (ProxyPass)
|
||||
:remove: apache site searx.conf
|
||||
nginx (http://fv-az144-910/searx)
|
||||
nginx (http://fv-az240-690/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://fv-az144-910/searx
|
||||
PUBLIC_HOST : fv-az144-910
|
||||
PUBLIC_URL : http://fv-az240-690/searx
|
||||
PUBLIC_HOST : fv-az240-690
|
||||
SERVICE_USER : filtron
|
||||
FILTRON_TARGET : 127.0.0.1:8888
|
||||
FILTRON_API : 127.0.0.1:4005
|
||||
|
@ -194,7 +194,7 @@ install
|
||||
:base: prepare LXC; install basic packages
|
||||
:suite: install LXC searx suite into all (or <name>) containers
|
||||
|
||||
LXC suite: searx --> http://fv-az144-910/searx
|
||||
LXC suite: searx --> http://fv-az240-690/searx
|
||||
suite includes searx, morty & filtron
|
||||
suite images:
|
||||
ubu1804 ubu2004 ubu2010 fedora33 archlinux centos7
|
||||
|
@ -186,22 +186,22 @@ inspect service
|
||||
option
|
||||
set one of the available options
|
||||
:new-key: set new morty key
|
||||
apache : http://fv-az144-910/morty/
|
||||
apache : http://fv-az240-690/morty/
|
||||
:install: apache site with a reverse proxy (ProxyPass)
|
||||
:remove: apache site morty.conf
|
||||
nginx (http://fv-az144-910/morty/)
|
||||
nginx (http://fv-az240-690/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://fv-az144-910/morty/
|
||||
PUBLIC_URL_MORTY: http://fv-az240-690/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://fv-az144-910/morty/
|
||||
url : http://fv-az240-690/morty/
|
||||
server:
|
||||
image_proxy : True
|
||||
</pre></div>
|
||||
|
@ -113,8 +113,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://fv-az144-910/searx
|
||||
SEARX_INSTANCE_NAME : searx@fv-az144-910
|
||||
PUBLIC_URL : http://fv-az240-690/searx
|
||||
SEARX_INSTANCE_NAME : searx@fv-az240-690
|
||||
SERVICE_USER : searx
|
||||
SEARX_INTERNAL_HTTP : http://127.0.0.1:8888
|
||||
</pre></div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user