All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ori-server.0.1.11.source-code.application.properties Maven / Gradle / Ivy

There is a newer version: 0.1.20
Show newest version
# Name that will be registered in Eureka service registry
spring.application.name=server
server.port=${ZAHORI_SERVER_PORT}
# Server version from pom.xml
[email protected]@

server.servlet.context-path=/

# Para clases con @RepositoryRestResource
spring.data.rest.base-path=/api

# Si no se activa la siguiente linea el content-type por defecto de las respuestas sera: application/hal+json
spring.data.rest.defaultMediaType=application/json

spring.task.execution.pool.core-size=10

# ===============================
# = EUREKA SERVICE
# ===============================
# Eureka Service Registry. By default: localhost:8761
eureka.client.serviceUrl.defaultZone=http://${ZAHORI_EUREKA_HOST}:${ZAHORI_EUREKA_PORT}/eureka/
#eureka.client.eureka-service-url-poll-interval-seconds=15
#eureka.instance.leaseRenewalIntervalInSeconds=5
eureka.instance.preferIpAddress=true

# ===============================
# = EVIDENCES DIRECTORY
# ===============================
zahori.evidences.dir=./evidences/

# ===============================
# = DATA SOURCE
# ===============================
# Set here configurations for the database connection
spring.datasource.driver-class-name=org.postgresql.Driver
spring.datasource.url=jdbc:postgresql://${ZAHORI_DB_HOST}:${ZAHORI_DB_PORT}/${ZAHORI_DB_NAME}?currentSchema=${ZAHORI_DB_SCHEMA}
spring.datasource.username=${ZAHORI_DB_USER}
spring.datasource.password=${ZAHORI_DB_PASS}

# Keep the connection alive if idle for a long time (needed in production)
spring.datasource.testWhileIdle=true
spring.datasource.validationQuery=SELECT 1

# ===============================
# = JPA / HIBERNATE
# ===============================
# Show or not log for each sql query
spring.jpa.show-sql=false
# Allows Hibernate to generate SQL optimized for a particular DBMS
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
# Para quitar la traza de error org.postgresql.jdbc4.Jdbc4Connection.createClob() is not yet implemented
spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults = false

management.health.probes.enabled=true
management.health.datasource.enabled=true

# ===============================
# = LOGGING
# ===============================
# Level
logging.level.=INFO
logging.level.io.zahori=DEBUG
logging.level.org.springframework=INFO

# Pattern
logging.pattern.console=%d{yyyy-MM-dd} %d{HH:mm:ss.SSS} %5p %-40.40logger  %m%n

# ===============================
# = UPLOAD FILES
# ===============================
spring.servlet.multipart.max-file-size=10MB
spring.servlet.multipart.max-request-size=10MB





© 2015 - 2024 Weber Informatics LLC | Privacy Policy