mirror of
https://git.imnavajas.es/jjimenez/erp-imprimelibros.git
synced 2026-01-23 09:10:22 +00:00
terminado a falta de pruebas en servidor
This commit is contained in:
@ -3,16 +3,35 @@
|
||||
#
|
||||
# Logging
|
||||
#
|
||||
logging.level.root=INFO
|
||||
logging.level.org.springframework.security=ERROR
|
||||
logging.level.root=ERROR
|
||||
logging.level.org.springframework=ERROR
|
||||
logging.level.org.springframework.web=ERROR
|
||||
logging.level.org.thymeleaf=ERROR
|
||||
logging.level.org.apache.catalina.core=ERROR
|
||||
# Debug JPA / Hibernate
|
||||
#logging.level.org.hibernate.SQL=DEBUG
|
||||
#logging.level.org.hibernate.orm.jdbc.bind=TRACE
|
||||
#spring.jpa.properties.hibernate.format_sql=true
|
||||
|
||||
server.error.include-message=always
|
||||
server.error.include-stacktrace=on_param
|
||||
server.error.include-binding-errors=on_param
|
||||
|
||||
|
||||
# Archivo relativo a tu proyecto (asegúrate de que exista el directorio ./logs)
|
||||
logging.file.name=logs/erp.log
|
||||
|
||||
# Rotación tiempo+tamaño (mismo patrón, pero en ./logs)
|
||||
logging.logback.rollingpolicy.file-name-pattern=logs/erp-%d{yyyy-MM-dd}.%i.log
|
||||
logging.logback.rollingpolicy.max-file-size=10MB
|
||||
logging.logback.rollingpolicy.max-history=10
|
||||
logging.logback.rollingpolicy.total-size-cap=1GB
|
||||
|
||||
# Formatos con timestamp
|
||||
logging.pattern.console=%d{yyyy-MM-dd HH:mm:ss} %-5level [%thread] %logger{36} - %msg%n
|
||||
logging.pattern.file=%d{yyyy-MM-dd HH:mm:ss} %-5level [%thread] %logger{36} - %msg%n
|
||||
|
||||
# Datos de la API de Safekat
|
||||
safekat.api.url=http://localhost:8000/
|
||||
safekat.api.email=imnavajas@coit.es
|
||||
|
||||
@ -3,14 +3,34 @@
|
||||
#
|
||||
# Logging
|
||||
#
|
||||
logging.level.org.springframework.security=ERROR
|
||||
|
||||
# Niveles
|
||||
logging.level.root=ERROR
|
||||
logging.level.org.springframework=ERROR
|
||||
# Debug JPA / Hibernate
|
||||
#logging.level.org.hibernate.SQL=DEBUG
|
||||
#logging.level.org.hibernate.orm.jdbc.bind=TRACE
|
||||
#spring.jpa.properties.hibernate.format_sql=true
|
||||
logging.level.org.springframework.security=ERROR
|
||||
logging.level.org.springframework.web=ERROR
|
||||
logging.level.org.thymeleaf=ERROR
|
||||
logging.level.org.apache.catalina.core=ERROR
|
||||
|
||||
server.error.include-message=never
|
||||
server.error.include-stacktrace=never
|
||||
server.error.include-binding-errors=never
|
||||
# Opcional: desactivar Whitelabel y servir tu propia página de error
|
||||
server.error.whitelabel.enabled=false
|
||||
|
||||
|
||||
# Archivo principal dentro del contenedor (monta /var/log/imprimelibros como volumen)
|
||||
logging.file.name=/var/log/imprimelibros/erp.log
|
||||
|
||||
# Rotación tiempo+tamaño -> requiere %d y %i
|
||||
logging.logback.rollingpolicy.file-name-pattern=/var/log/imprimelibros/erp-%d{yyyy-MM-dd}.%i.log
|
||||
logging.logback.rollingpolicy.max-file-size=10MB
|
||||
logging.logback.rollingpolicy.max-history=10
|
||||
logging.logback.rollingpolicy.total-size-cap=1GB
|
||||
|
||||
# Formatos con timestamp
|
||||
logging.pattern.console=%d{yyyy-MM-dd HH:mm:ss} %-5level [%thread] %logger{36} - %msg%n
|
||||
logging.pattern.file=%d{yyyy-MM-dd HH:mm:ss} %-5level [%thread] %logger{36} - %msg%n
|
||||
|
||||
|
||||
# Datos de la API de Safekat
|
||||
|
||||
@ -19,15 +19,6 @@ spring.jpa.show-sql=false
|
||||
# Hibernate Timezone
|
||||
spring.jpa.properties.hibernate.jdbc.time_zone=UTC
|
||||
|
||||
|
||||
# Mensajes de error mas cortos
|
||||
# Oculta el stack trace en los errores del servidor
|
||||
server.error.include-stacktrace=never
|
||||
# No mostrar el mensaje completo de excepción en la respuesta
|
||||
server.error.include-message=always
|
||||
|
||||
|
||||
|
||||
#
|
||||
# Resource chain
|
||||
# Activa el resource chain y versionado por contenido
|
||||
@ -106,5 +97,3 @@ redsys.currency=978
|
||||
redsys.transaction-type=0
|
||||
redsys.secret-key=sq7HjrUOBfKmC576ILgskD5srU870gJ7
|
||||
|
||||
|
||||
|
||||
|
||||
@ -0,0 +1,28 @@
|
||||
databaseChangeLog:
|
||||
- changeSet:
|
||||
id: 0012-drop-unique-tx-gateway
|
||||
author: JJO
|
||||
|
||||
# ✅ Solo ejecuta el changeSet si existe la UNIQUE constraint
|
||||
preConditions:
|
||||
- onFail: MARK_RAN
|
||||
- uniqueConstraintExists:
|
||||
tableName: payment_transactions
|
||||
constraintName: idx_payment_tx_gateway_txid
|
||||
|
||||
changes:
|
||||
# 1️⃣ Eliminar la UNIQUE constraint si existe
|
||||
- dropIndex:
|
||||
tableName: payment_transactions
|
||||
indexName: idx_payment_tx_gateway_txid
|
||||
|
||||
|
||||
rollback:
|
||||
# 🔙 1) Eliminar el índice normal creado en este changeSet
|
||||
- createIndex:
|
||||
tableName: payment_transactions
|
||||
indexName: idx_payment_tx_gateway_txid
|
||||
columns:
|
||||
- column:
|
||||
name: gateway_transaction_id
|
||||
|
||||
@ -31,6 +31,9 @@ pagos.transferencia.finalizar.error.general=Error al finalizar la transferencia
|
||||
pagos.transferencia.ok.title=Pago por transferencia bancaria
|
||||
pagos.transferencia.ok.text=Ha realizado su pedido correctamente. Para completar el pago, realice una transferencia bancaria con los siguientes datos:<br>Titular de la cuenta: Impresión Imprime Libros SL<br>IBAN: ES00 1234 5678 9012 3456 7890<br>Importe: {0}<br>Concepto: {1}<br>Le rogamos que nos envíe el justificante de la transferencia respondiendo al correo de confirmación de pedido que le acabamos de enviar.<br>Si no encuentra el mensaje, por favor revise la carpeta de correo no deseado y añada <a href="mailto:contacto@imprimelibros.com">contacto@imprimelibros.com</a>
|
||||
|
||||
pagos.tarjeta-bizum.ok.title=Pago realizado correctamente
|
||||
pagos.tarjeta-bizum.ok.text=Gracias por confiar en nosotros.<br> Su pago se ha procesado correctamente. En breve recibirá un correo electrónico con los detalles de su pedido.
|
||||
|
||||
pagos.refund.title=Devolución
|
||||
pagos.refund.text=Introduce la cantidad a devolver (en euros):
|
||||
pagos.refund.success=Devolución solicitada con éxito. Si no se refleja inmediatamente, espere unos minutos y actualiza la página.
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
<div class="card-body">
|
||||
<h3 th:text="#{pagos.tarjeta-bizum.ok.title}"></h3>
|
||||
<span th:utext="#{pagos.tarjeta-bizum.ok.text}"></span>
|
||||
<div class="col-md-12 d-flex justify-content-center">
|
||||
<div class="col-md-12 d-flex justify-content-center mt-4">
|
||||
<div class="progress-container">
|
||||
<div class="progress-bar-custom"></div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user