on master help sign in
[mod] config file replaced
commit8fe660b1dff4af6cff1292bb436b286ab2f91789 authorasciimoo <asciimoo@gmail.com> dateSat 19 Oct 2013, 16:25 (13 years ago) parent1b3712c
3 files changed+1−17
README.md+1−2 searx.conf_sample−7 searx/webapp.py−8
README.md+1−2
@@ -16,8 +16,7 @@ A hackable [metasearch engine](https://en.wikipedia.org/wiki/Metasearch_engine)
1616
1717* install dependencies: `pip install -r requirements.txt`
1818* clone source: `git clone git@github.com:asciimoo/searx.git && cd searx`
19−* create a config file: `cp searx.conf_sample search.conf`
20−* edit your config (set your `secret_key`!)
19+* edit your [searx/settings.py](https://github.com/asciimoo/searx/blob/master/searx/settings.py) (set your `secret_key`!)
2120* run `python searx/webapp.py` to start the application
2221
2322### TODO
searx.conf_sampledeleted−7
@@ -1,7 +0,0 @@
1−[app]
2−secret_key = "yourultrasecretkey" # change this!
3−
4−[server]
5−port = 8888
6−debug = False
7−
searx/webapp.py−8
@@ -23,18 +23,10 @@ if __name__ == "__main__":
2323 path.append(realpath(dirname(realpath(__file__))+'/../'))
2424
2525from flask import Flask, request, flash, render_template, url_for, Response, make_response
26−import ConfigParser
27−from os import getenv
2826from searx.engines import search, categories
2927from searx import settings
3028import json
3129
32−cfg = ConfigParser.SafeConfigParser()
33−cfg.read('/etc/searx.conf')
34−cfg.read(getenv('HOME')+'/.searxrc')
35−cfg.read(getenv('HOME')+'/.config/searx/searx.conf')
36−cfg.read('searx.conf')
37−
3830
3931app = Flask(__name__)
4032app.secret_key = settings.secret_key