mirror of
https://github.com/searxng/searxng.git
synced 2025-12-23 20:20:05 +00:00
[mod] config file replaced
This commit is contained in:
@@ -23,18 +23,10 @@ if __name__ == "__main__":
|
||||
path.append(realpath(dirname(realpath(__file__))+'/../'))
|
||||
|
||||
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 import settings
|
||||
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.secret_key = settings.secret_key
|
||||
|
||||
Reference in New Issue
Block a user