add chrome headless option and improve default data dir finding

This commit is contained in:
Nick Sweeting 2019-03-12 17:50:10 -04:00
parent 8630c0fdaa
commit 1c1bc76ac1
2 changed files with 39 additions and 9 deletions

View file

@ -37,6 +37,7 @@ GIT_DOMAINS = os.getenv('GIT_DOMAINS', 'github.com,bitbuck
WGET_USER_AGENT = os.getenv('WGET_USER_AGENT', 'ArchiveBox/{GIT_SHA} (+https://github.com/pirate/ArchiveBox/) wget/{WGET_VERSION}')
COOKIES_FILE = os.getenv('COOKIES_FILE', None)
CHROME_USER_DATA_DIR = os.getenv('CHROME_USER_DATA_DIR', None)
CHROME_HEADLESS = os.getenv('CHROME_HEADLESS', 'True' ).lower() == 'true'
CURL_BINARY = os.getenv('CURL_BINARY', 'curl')
GIT_BINARY = os.getenv('GIT_BINARY', 'git')