aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-01-21 05:50:43 +0100
committerneodarz <neodarz@neodarz.net>2018-01-21 05:50:43 +0100
commit70eea5c1874ef3fffe59c5ab0a03dae25beb2d25 (patch)
treedae09eba5bcee087d1d8e98c968c022d89c73401
parent80a16a605576f85e15ffd0a3b4baf2f1dbaa2ab4 (diff)
downloadryzomcore_searx-70eea5c1874ef3fffe59c5ab0a03dae25beb2d25.tar.xz
ryzomcore_searx-70eea5c1874ef3fffe59c5ab0a03dae25beb2d25.zip
Add code for directly build and start searx preconfigured
-rw-r--r--README.md9
-rwxr-xr-xinstall.sh17
-rw-r--r--src/RyzomForum.py (renamed from RyzomForum.py)0
-rw-r--r--src/devryzom.py (renamed from devryzom.py)0
-rw-r--r--src/forgeryzom.py (renamed from forgeryzom.py)0
-rw-r--r--src/khaganatForum.py (renamed from khaganatForum.py)0
-rw-r--r--src/khaganatWikhan.py (renamed from khaganatWikhan.py)0
-rw-r--r--src/ryzomcoreConfluence.py (renamed from ryzomcoreConfluence.py)0
-rw-r--r--src/settings.yml (renamed from settings.yml)25
-rwxr-xr-xstart.sh3
10 files changed, 51 insertions, 3 deletions
diff --git a/README.md b/README.md
index 7bdb819..9ab6708 100644
--- a/README.md
+++ b/README.md
@@ -30,6 +30,15 @@ Si "moteurs de recherche" est entre guillmet, c'est que ce ne sont pas des moteu
* khaganat.net/forum: !kf
* ryzom.com/forum: !rc
+# Installation
+
+Pour installer il suffit de lancer `install.sh` afin d'installer searx et de
+le configurer directement.
+
+# Usage
+
+Pour lancer le serveur, il suffit de lancer `start.sh`.
+
# Développement
(searx utilise python 2.7, ça peut toujours être utile comme info)
diff --git a/install.sh b/install.sh
new file mode 100755
index 0000000..4793895
--- /dev/null
+++ b/install.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+git clone https://github.com/asciimoo/searx.git
+cd searx
+git checkout v0.13.1
+cd ..
+ln -s ../../../src/devryzom.py searx/searx/engines/devryzom.py
+ln -s ../../../src/khaganatWikhan.py searx/searx/engines/khaganatWikhan.py
+ln -s ../../../src/khaganatForum.py searx/searx/engines/khaganatForum.py
+ln -s ../../../src/forgeryzom.py searx/searx/engines/forgeryzom.py
+ln -s ../../../src/ryzomcoreConfluence.py searx/searx/engines/ryzomcoreConfluence.py
+ln -s ../../../src/RyzomForum.py searx/searx/engines/RyzomForum.py
+cp src/settings.yml searx/searx/settings.yml
+virtualenv venv -p python2.7
+source venv/bin/activate
+./searx/manage.sh update_packages
+
diff --git a/RyzomForum.py b/src/RyzomForum.py
index 083696c..083696c 100644
--- a/RyzomForum.py
+++ b/src/RyzomForum.py
diff --git a/devryzom.py b/src/devryzom.py
index 7201096..7201096 100644
--- a/devryzom.py
+++ b/src/devryzom.py
diff --git a/forgeryzom.py b/src/forgeryzom.py
index 850ae43..850ae43 100644
--- a/forgeryzom.py
+++ b/src/forgeryzom.py
diff --git a/khaganatForum.py b/src/khaganatForum.py
index 781a1cf..781a1cf 100644
--- a/khaganatForum.py
+++ b/src/khaganatForum.py
diff --git a/khaganatWikhan.py b/src/khaganatWikhan.py
index 083696c..083696c 100644
--- a/khaganatWikhan.py
+++ b/src/khaganatWikhan.py
diff --git a/ryzomcoreConfluence.py b/src/ryzomcoreConfluence.py
index 5d35c9f..5d35c9f 100644
--- a/ryzomcoreConfluence.py
+++ b/src/ryzomcoreConfluence.py
diff --git a/settings.yml b/src/settings.yml
index 76f1c3d..db1cf22 100644
--- a/settings.yml
+++ b/src/settings.yml
@@ -9,13 +9,15 @@ search:
server:
port : 8888
- bind_address : "0.0.0.0" # address to listen on
- secret_key : "e6a21d96debe828f1cad62074bec30a2" # change this!
+ bind_address : "127.0.0.1" # address to listen on
+ secret_key : "ultrasecretkey" # change this!
base_url : False # Set custom base_url. Possible values: False or "https://your.custom.host/location/"
image_proxy : False # Proxying image results through searx
+ http_protocol_version : "1.0" # 1.0 and 1.1 are supported
ui:
- themes_path : "" # Custom ui themes path - leave it blank if you didn't change
+ static_path : "" # Custom static path - leave it blank if you didn't change
+ templates_path : "" # Custom templates path - leave it blank if you didn't change
default_theme : oscar # ui theme
default_locale : "" # Default interface locale - leave blank to detect from browser information or use codes from the 'locales' config section
@@ -70,13 +72,18 @@ engines:
locales:
en : English
+ ar : العَرَبِيَّة (Arabic)
bg : Български (Bulgarian)
+ cs : Čeština (Czech)
+ da : Dansk (Danish)
de : Deutsch (German)
el_GR : Ελληνικά (Greek_Greece)
eo : Esperanto (Esperanto)
es : Español (Spanish)
+ fi : Suomi (Finnish)
fr : Français (French)
he : עברית (Hebrew)
+ hr : Hrvatski (Croatian)
hu : Magyar (Hungarian)
it : Italiano (Italian)
ja : 日本語 (Japanese)
@@ -85,5 +92,17 @@ locales:
pt_BR : Português (Portuguese_Brazil)
ro : Română (Romanian)
ru : Русский (Russian)
+ sk : Slovenčina (Slovak)
+ sl : Slovenski (Slovene)
+ sr : српски (Serbian)
+ sv : Svenska (Swedish)
tr : Türkçe (Turkish)
+ uk : українська мова (Ukrainian)
zh : 中文 (Chinese)
+
+doi_resolvers :
+ oadoi.org : 'https://oadoi.org/'
+ doi.org : 'https://doi.org/'
+ doai.io : 'http://doai.io/'
+
+default_doi_resolver : 'oadoi.org'
diff --git a/start.sh b/start.sh
new file mode 100755
index 0000000..7745c4b
--- /dev/null
+++ b/start.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+source ./venv/bin/activate
+python2.7 searx/searx/webapp.py