36 lines
1.0 KiB
YAML
36 lines
1.0 KiB
YAML
app:
|
|
name: "api-facturacion-myapps"
|
|
port: 9999
|
|
environment: "development" # development, staging, production
|
|
log_level: "debug" # debug, info, warn, error
|
|
request_timeout: 30 # seconds
|
|
log_file_path: "./logs/api_facturacion.log"
|
|
log_max_size: 10 # Tamaño máximo en MB
|
|
log_max_backups: 5 # Número de archivos rotados a mantener
|
|
log_max_age: 30 # Días a mantener los archivos
|
|
log_compress: true # Comprimir archivos rotados
|
|
use_file_logger: true # Controla si usar archivo (true) o solo stdout (false)
|
|
|
|
database:
|
|
host: "localhost"
|
|
port: 5555
|
|
username: "facturacion_user"
|
|
password: "facturacion_pass"
|
|
database: "facturacion_bd"
|
|
max_open_conns: 10
|
|
max_idle_conns: 5
|
|
conn_max_lifetime: 1h
|
|
|
|
soap:
|
|
timeout: 15 # seconds
|
|
apis:
|
|
api1:
|
|
endpoint: "https://api1.example.com/soap"
|
|
username: ""
|
|
password: ""
|
|
timeout: 10 # seconds
|
|
api2:
|
|
endpoint: "https://api2.example.com/soap"
|
|
username: ""
|
|
password: ""
|
|
timeout: 20 # seconds |