wip middleware
This commit is contained in:
@@ -10,7 +10,9 @@ KONVIVA_SECRET_KEY: str = os.getenv('KONVIVA_SECRET_KEY') # type: ignore
|
||||
|
||||
|
||||
match os.getenv('AWS_SAM_LOCAL'), os.getenv('ELASTIC_HOSTS'):
|
||||
case str() as AWS_SAM_LOCAL, _ if AWS_SAM_LOCAL:
|
||||
case str() as AWS_SAM_LOCAL, _ if (
|
||||
AWS_SAM_LOCAL
|
||||
): # Only when running `sam local start-api`
|
||||
ELASTIC_CONN = {
|
||||
'hosts': 'http://host.docker.internal:9200',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user