server.port=${PORT:8080}
server.servlet.session.timeout=30m
logging.level.org.atmosphere = warn
spring.mustache.check-template-location = false

# Launch the default browser when starting the application in development mode
vaadin.launch-browser=true
# To improve the performance during development.
# For more information https://vaadin.com/docs/latest/integrations/spring/configuration#special-configuration-parameters
vaadin.allowed-packages = com.vaadin,org.vaadin,mx.gob.jumapacelaya
spring.jpa.defer-datasource-initialization = true


# Conexion a la base de datos Comercial
spring.datasource.url=jdbc:oracle:thin:@//svrcomer.JUMAPACELAYA.GOB.MX:1521/comerpdb.JUMAPACELAYA.GOB.MX
spring.datasource.username=Comercial
spring.datasource.password=Comercial
spring.datasource.driver-class-name=oracle.jdbc.OracleDriver
logging.level.com.zaxxer.hikari=DEBUG
spring.jpa.hibernate.ddl-auto=none
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true

vaadin.whitelisted-packages=es/f0rce/signaturepad
vaadin.allowed-packages=de.f0rce.signaturepad
vaadin.closeIdleSessions=true

# Configuración de Hikari Pool
spring.datasource.hikari.minimum-idle=2
spring.datasource.hikari.maximum-pool-size=10
spring.datasource.hikari.idle-timeout=300000
spring.datasource.hikari.connection-timeout=50000
spring.datasource.hikari.validation-timeout=5000

# Propiedades adicionales de Oracle
spring.datasource.hikari.data-source-properties.oracle.net.CONNECT_TIMEOUT=10000
spring.datasource.hikari.data-source-properties.oracle.jdbc.ReadTimeout=30000

# Validación de conexiones
spring.datasource.hikari.connection-test-query=SELECT 1 FROM DUAL

#LDAP Config
spring.ldap.url=ldap://svradmin.jumapacelaya.gob.mx:389
spring.ldap.base=dc=jumapacelaya,dc=gob,dc=mx
spring.ldap.username=uid=administrator,ou=system
spring.ldap.password=Dr3na$134%4guA