Browse Source

searx upgrade ver. 1

master
Daniel Martinez 1 year ago
parent
commit
c810301709
  1. 7
      src/server_deploy.sh
  2. 10
      src/server_upgrades.sh
  3. 17
      templates/searx.uwsgi

7
src/server_deploy.sh

@ -94,8 +94,11 @@ deploy_searx () {
sudo -H -u searx -i pip install -e /usr/local/searx/searx-src
cp /usr/local/searx/searx-src/searx/settings.yml /etc/searx/settings.yml
sed -i -e s/ultrasecretkey/${random_key}/ /etc/searx/settings.yml
sed -i -e s/instance_name/${searx_name}/ /etc/searx/settings.yml
cp ${DIR}/templates/uwsgi_searx.ini /etc/uwsgi/apps-available/searx.ini
sed -i -e s/instance_name/${subdomain}.${domain}/ /etc/searx/settings.yml
cp templates/uwsgi_searx.ini /etc/uwsgi/apps-available/searx.ini
ln -s /etc/uwsgi/apps-available/searx.ini /etc/uwsgi/apps-enabled/searx.ini
systemctl restart uwsgi
cp templates/searx.nginx /etc/nginx/sites-enabled/${domain}/${subdomain}.conf
nginx -t
[[ ${?} == 0 ]] && systemctl reload nginx
}

10
src/server_upgrades.sh

@ -97,4 +97,12 @@ upgrade_searx () {
sudo -H -i -u searx
git stash
if [[ ${?} == 1 ]]; then
git config --global user.email
git config --global user.email auto_kbrd@keybored.co
git config --global user.name Keybored Co
fi
git pull origin master
git stash apply
./manage.sh update_packages
exit
sudo -H systemctl restart uwsgi
}

17
templates/searx.uwsgi

@ -0,0 +1,17 @@
[uwsgi]
uid = searx
gid = searx
chdir = /usr/local/searx/searx-src/searx
env = SEARX_SETTINGS_PATH=/etc/searx/settings.yml
disable-logging = true
chmod-socket = 666
single-interpreter = true
master = true
lazy-apps = true
plugin = python3,http
enable-threads = true
module = searx.webapp
virtualenv = /usr/local/searx/searx-pyenv
pythonpath = /usr/local/searx/searx-src
socket = /run/uwsgi/app/searx/socket
Loading…
Cancel
Save