This commit is contained in:
Alex Yatskov 2020-03-05 19:33:27 -08:00
parent 975c0699b7
commit c64e78addf

View File

@ -46,16 +46,16 @@ def api(*versions):
def setting(key): def setting(key):
defaults = { defaults = {
'apiKey': None, 'apiKey': None,
'apiLogPath': None, 'apiLogPath': None,
'apiPollInterval': 25, 'apiPollInterval': 25,
'apiVersion': 6, 'apiVersion': 6,
'webBacklog': 5, 'webBacklog': 5,
'webBindAddress': os.getenv('ANKICONNECT_BIND_ADDRESS', '127.0.0.1'), 'webBindAddress': os.getenv('ANKICONNECT_BIND_ADDRESS', '127.0.0.1'),
'webBindPort': 8765, 'webBindPort': 8765,
'webCorsOrigin': os.getenv('ANKICONNECT_CORS_ORIGIN', 'http://localhost'), 'webCorsOrigin': os.getenv('ANKICONNECT_CORS_ORIGIN', 'http://localhost'),
'webCorsOriginList': ['http://localhost'], 'webCorsOriginList': ['http://localhost'],
'webTimeout': 10000, 'webTimeout': 10000,
} }
try: try: