Initial commit
This commit is contained in:
16
config.py
Normal file
16
config.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import os
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv()
|
||||
|
||||
class Config:
|
||||
# Credenciais padrão (podem ser sobrescritas por variáveis de ambiente)
|
||||
OLT_USERNAME = os.getenv('OLT_USERNAME', 'admin')
|
||||
OLT_PASSWORD = os.getenv('OLT_PASSWORD', 'admin')
|
||||
|
||||
# Timeout do Netmiko em segundos
|
||||
NETMIKO_TIMEOUT = int(os.getenv('NETMIKO_TIMEOUT', 10))
|
||||
|
||||
# TTL do Cache em segundos (padrão 5 minutos)
|
||||
CACHE_TTL = int(os.getenv('CACHE_TTL', 300))
|
||||
CACHE_MAX_SIZE = int(os.getenv('CACHE_MAX_SIZE', 100))
|
||||
Reference in New Issue
Block a user