# ===================================
# Configuration de l'application ERP
# SUARL Rayhan — PFE Ali Guennari
# ===================================

# Serveur
server.port=8080

# Reverse proxy HTTPS (Nginx/Traefik devant le conteneur)
server.forward-headers-strategy=framework
server.tomcat.remoteip.remote-ip-header=x-forwarded-for
server.tomcat.remoteip.protocol-header=x-forwarded-proto

# Base de données MySQL
spring.datasource.url=jdbc:mysql://localhost:3306/rayhan_erp_db?createDatabaseIfNotExist=true&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Africa/Tunis
spring.datasource.username=root
spring.datasource.password=rayhan_erp_2024
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

# JPA / Hibernate
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=false
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
spring.jpa.properties.hibernate.format_sql=true

# JWT
rayhan.erp.jwtSecret=RayhanERP_SecretKey_PFE_AliGuennari_2024_TunisiePlasturgie_SUARL
rayhan.erp.jwtExpirationMs=86400000

# Logging
logging.level.com.rayhan.erp=DEBUG
logging.level.org.springframework.security=INFO
