summaryrefslogtreecommitdiff
path: root/production.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'production.cfg')
-rw-r--r--production.cfg19
1 files changed, 19 insertions, 0 deletions
diff --git a/production.cfg b/production.cfg
index c2a4f5a8d..b290c1a62 100644
--- a/production.cfg
+++ b/production.cfg
@@ -7,6 +7,8 @@ eggs =
parts +=
pyscripts
+ supervisor
+ crontab_reboot
[pyscripts]
@@ -15,3 +17,20 @@ eggs = ${buildout:eggs}
interpreter = py
entry-points =
searx-run=searx.webapp:run
+
+
+[supervisor]
+recipe = collective.recipe.supervisor
+http-socket = unix
+user = searxer
+password = ohpleasedochangeme
+file = /tmp/supervisor.sock
+chmod = 0700
+programs =
+ 50 searx ${buildout:bin-directory}/searx-run
+
+
+[crontab_reboot]
+recipe = z3c.recipe.usercrontab
+times = @reboot
+command = ${buildout:bin-directory}/supervisord