New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

systemd init file #985

Open
inattendu opened this Issue Aug 1, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@inattendu
Copy link

inattendu commented Aug 1, 2017

Hi !
Thanks for this awesome soft.
Here is a very basic systemd unit file that work with the latest version of searx (tested with debian8)

/etc/systemd/system/searx.service

Description=searx
After=syslog.target network.target

[Service]
Type=simple
User=searx
WorkingDirectory=/usr/local/searx
ExecStart=/usr/local/searx/searx-ve/bin/python /usr/local/searx/searx/webapp.py

[Install]
WantedBy=multi-user.target

Reload the config & activate the service's persistance with :

systemctl daemon-reload && systemctl enable searx.service

My searx instance is configured with apache only, acting as a reverse proxy ; CF this part of the official documentation

Thanks, and keep up the good work.

@dalf dalf added the installation label Aug 1, 2017

@dalf

This comment has been minimized.

Copy link
Collaborator

dalf commented Aug 1, 2017

It seems there is no uwsgi at all ?

@inattendu

This comment has been minimized.

Copy link
Author

inattendu commented Aug 1, 2017

Nope, sorry i've missed that the apache part of the doc I've linked use UWSGI, i prefer using apache as a HTTP reverse-proxy with directives like :

        ProxyRequests Off
        <Proxy *>
                AllowOverride None
                Require all granted
        </Proxy>
        ProxyPass / http://localhost:8888/
        ProxyPassReverse / http://localhost:8888/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment