server.port=8080

# =====================================================
# CORS — allow requests from the payroll subdomain
# =====================================================

app.cors.allowed-origins=https://payroll.niscom.in,http://payroll.niscom.in

# =====================================================
# File Upload Limits
# =====================================================

spring.servlet.multipart.enabled=true
spring.servlet.multipart.max-file-size=50MB
spring.servlet.multipart.max-request-size=50MB
server.tomcat.max-http-form-post-size=50MB
server.tomcat.max-swallow-size=50MB

# =====================================================
# Async / SSE Timeout (-1 = no timeout)
# =====================================================

spring.mvc.async.request-timeout=-1

# =====================================================
# Session
# =====================================================

server.servlet.session.timeout=0

# =====================================================
# Logging
# =====================================================

logging.level.com.payslip=INFO

# =====================================================
# Access PIN
# =====================================================

app.pin=123456

# =====================================================
# cPanel Mail (web.niscom.in)
# FILL IN THE EMAIL PASSWORD BELOW
# =====================================================

spring.mail.host=web.niscom.in
spring.mail.port=465
spring.mail.username=
spring.mail.password=

spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.ssl.enable=true
spring.mail.properties.mail.smtp.ssl.trust=web.niscom.in
spring.mail.properties.mail.smtp.starttls.enable=false
spring.mail.properties.mail.smtp.starttls.required=false
spring.mail.properties.mail.smtp.connectiontimeout=30000
spring.mail.properties.mail.smtp.timeout=30000
spring.mail.properties.mail.smtp.writetimeout=30000
spring.mail.properties.mail.smtp.quitwait=false
spring.mail.properties.mail.smtp.pool=false
spring.mail.properties.mail.smtp.allow8bitmime=true
spring.mail.properties.mail.debug=false

# =====================================================
# Application Mail Config
# cPanel mail has no auth rate limits — send freely
# =====================================================

app.mail.sender-name=Niscom Payroll
app.mail.batch-size=50
app.mail.delay-between-mails-ms=300
app.mail.delay-between-batches-ms=1000
app.mail.max-retries=3
app.mail.reconnect-every=200
app.mail.auth-lockout-wait-ms=5000
