mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
Fix dedup_index_url configuration option (#617)
The 'dedup_index_url' configuration option should be inside the 'recorder' section.
This commit is contained in:
parent
7ce4573c70
commit
cdb17c4000
@ -78,7 +78,7 @@ class WarcServer(BaseWarcServer):
|
||||
|
||||
recorder_config = self.config.get('recorder') or {}
|
||||
if isinstance(recorder_config, dict) and recorder_config.get('dedup_policy'):
|
||||
self.dedup_index_url = self.config.get('dedup_index_url', WarcServer.DEFAULT_DEDUP_URL)
|
||||
self.dedup_index_url = recorder_config.get('dedup_index_url', WarcServer.DEFAULT_DEDUP_URL)
|
||||
if self.dedup_index_url and not self.dedup_index_url.startswith('redis://'):
|
||||
raise Exception("The dedup_index_url must start with \"redis://\". Only Redis-based dedup index is supported at this time.")
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user