19 lines
891 B
Python
19 lines
891 B
Python
import os
|
|
|
|
|
|
def str_to_bool(value: str) -> bool:
|
|
return value.lower() in ['true', '1', 't', 'yes', 'y']
|
|
|
|
|
|
COLUNA = os.getenv('COLUNA', 'uuid')
|
|
URL_BD = os.getenv('URL_BD', 'postgresql+asyncpg://sonora:sonora@192.168.0.11:5432/pytest')
|
|
URL_BD_TESTE = os.getenv('URL_BD_TESTE', 'postgresql+asyncpg://sonora:sonora@192.168.0.11:5432/pytest')
|
|
SECRET = os.getenv('SECRET', '6be9ce93ea990b59f4448f5e84b37d785d7585245dbf2cc81e340389c2fdb4af')
|
|
ECHO = str_to_bool(os.getenv('ECHO', 'False'))
|
|
ENV = os.getenv('ENV', 'teste')
|
|
S3_ACCESS_KEY_ID = os.getenv('S3_ACCESS_KEY_ID', 'JFqmuTx4qh51kuGIzSZI')
|
|
S3_SECRET_ACCESS_KEY = os.getenv('S3_SECRET_ACCESS_KEY', 'ZjjvaDGpwDWpYO6zxgOhI0T9ibrRe7JnNl7AXyjH')
|
|
S3_BUCKET_NAME = os.getenv('S3_BUCKET_NAME', 'sistema')
|
|
S3_REGION_NAME = os.getenv('S3_REGION_NAME', 'br-vilavelha')
|
|
S3_ENDPOINT_URL = os.getenv('S3_ENDPOINT_URL', 'https://s3-api.sonoraav.com.br')
|