Procházet zdrojové kódy

[mod] config file replaced

asciimoo před 11 roky
rodič
revize
8fe660b1df
3 změnil soubory, kde provedl 1 přidání a 17 odebrání
  1. 1
    2
      README.md
  2. 0
    7
      searx.conf_sample
  3. 0
    8
      searx/webapp.py

+ 1
- 2
README.md Zobrazit soubor

@@ -16,8 +16,7 @@ A hackable [metasearch engine](https://en.wikipedia.org/wiki/Metasearch_engine)
16 16
 
17 17
 * install dependencies: `pip install -r requirements.txt`
18 18
 * 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`!)
21 20
 * run `python searx/webapp.py` to start the application
22 21
 
23 22
 ### TODO

+ 0
- 7
searx.conf_sample Zobrazit soubor

@@ -1,7 +0,0 @@
1
-[app]
2
-secret_key          = "yourultrasecretkey" # change this!
3
-
4
-[server]
5
-port                = 8888
6
-debug               = False
7
-

+ 0
- 8
searx/webapp.py Zobrazit soubor

@@ -23,18 +23,10 @@ if __name__ == "__main__":
23 23
     path.append(realpath(dirname(realpath(__file__))+'/../'))
24 24
 
25 25
 from flask import Flask, request, flash, render_template, url_for, Response, make_response
26
-import ConfigParser
27
-from os import getenv
28 26
 from searx.engines import search, categories
29 27
 from searx import settings
30 28
 import json
31 29
 
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
-
38 30
 
39 31
 app = Flask(__name__)
40 32
 app.secret_key = settings.secret_key