mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 12:10:11 +01:00
[mod] config file replaced
This commit is contained in:
parent
1b3712c189
commit
8fe660b1df
@ -16,8 +16,7 @@ A hackable [metasearch engine](https://en.wikipedia.org/wiki/Metasearch_engine)
|
|||||||
|
|
||||||
* install dependencies: `pip install -r requirements.txt`
|
* install dependencies: `pip install -r requirements.txt`
|
||||||
* clone source: `git clone git@github.com:asciimoo/searx.git && cd searx`
|
* clone source: `git clone git@github.com:asciimoo/searx.git && cd searx`
|
||||||
* create a config file: `cp searx.conf_sample search.conf`
|
* edit your [searx/settings.py](https://github.com/asciimoo/searx/blob/master/searx/settings.py) (set your `secret_key`!)
|
||||||
* edit your config (set your `secret_key`!)
|
|
||||||
* run `python searx/webapp.py` to start the application
|
* run `python searx/webapp.py` to start the application
|
||||||
|
|
||||||
### TODO
|
### TODO
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
[app]
|
|
||||||
secret_key = "yourultrasecretkey" # change this!
|
|
||||||
|
|
||||||
[server]
|
|
||||||
port = 8888
|
|
||||||
debug = False
|
|
||||||
|
|
@ -23,18 +23,10 @@ if __name__ == "__main__":
|
|||||||
path.append(realpath(dirname(realpath(__file__))+'/../'))
|
path.append(realpath(dirname(realpath(__file__))+'/../'))
|
||||||
|
|
||||||
from flask import Flask, request, flash, render_template, url_for, Response, make_response
|
from flask import Flask, request, flash, render_template, url_for, Response, make_response
|
||||||
import ConfigParser
|
|
||||||
from os import getenv
|
|
||||||
from searx.engines import search, categories
|
from searx.engines import search, categories
|
||||||
from searx import settings
|
from searx import settings
|
||||||
import json
|
import json
|
||||||
|
|
||||||
cfg = ConfigParser.SafeConfigParser()
|
|
||||||
cfg.read('/etc/searx.conf')
|
|
||||||
cfg.read(getenv('HOME')+'/.searxrc')
|
|
||||||
cfg.read(getenv('HOME')+'/.config/searx/searx.conf')
|
|
||||||
cfg.read('searx.conf')
|
|
||||||
|
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
app.secret_key = settings.secret_key
|
app.secret_key = settings.secret_key
|
||||||
|
Loading…
Reference in New Issue
Block a user