diff options
author | Adam Tauber <asciimoo@gmail.com> | 2015-04-13 00:30:12 +0200 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2015-04-13 00:30:12 +0200 |
commit | d2a636f75d24953f5094ea97ab54a8a4353a65ff (patch) | |
tree | 22da091679dd5b9460391a50810b96b80020e15f /searx/__init__.py | |
parent | 146928a74980b90de614b71512334ac0a6373048 (diff) | |
download | searxng-d2a636f75d24953f5094ea97ab54a8a4353a65ff.tar.gz searxng-d2a636f75d24953f5094ea97ab54a8a4353a65ff.zip |
[mod] https rewrite pluginification
Diffstat (limited to 'searx/__init__.py')
-rw-r--r-- | searx/__init__.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/searx/__init__.py b/searx/__init__.py index 110f46af8..2d545a809 100644 --- a/searx/__init__.py +++ b/searx/__init__.py @@ -36,11 +36,6 @@ if 'SEARX_SETTINGS_PATH' in environ: else: settings_path = join(searx_dir, 'settings.yml') -if 'SEARX_HTTPS_REWRITE_PATH' in environ: - https_rewrite_path = environ['SEARX_HTTPS_REWRITE_PATH'] -else: - https_rewrite_path = join(searx_dir, 'https_rules') - # load settings with open(settings_path) as settings_yaml: settings = load(settings_yaml) @@ -52,10 +47,4 @@ else: logger = logging.getLogger('searx') -# load https rules only if https rewrite is enabled -if settings.get('server', {}).get('https_rewrite'): - # loade https rules - from searx.https_rewrite import load_https_rules - load_https_rules(https_rewrite_path) - logger.info('Initialisation done') |