wip middleware

This commit is contained in:
2025-03-27 19:25:32 -03:00
parent 76c2656dd1
commit 5af61465f3
16 changed files with 422 additions and 52 deletions

View File

@@ -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',
}