#--------------------------------------------------------------------
# DLRL Koha Patron API — Production Environment
#--------------------------------------------------------------------
# Change ALL production settings in THIS file only (.env).
# After editing, save the file. No PHP code changes are required.
#--------------------------------------------------------------------

#--------------------------------------------------------------------
# ENVIRONMENT
#--------------------------------------------------------------------
# development | testing | production
CI_ENVIRONMENT = production

#--------------------------------------------------------------------
# APP
#--------------------------------------------------------------------
# Full public API base URL — must end with a trailing slash /
app.baseURL = 'http://14.139.92.12/dlrl_koha_api/'

# Keep empty so URLs work without index.php
app.indexPage = ''

app.forceGlobalSecureRequests = false
app.CSPEnabled = false

#--------------------------------------------------------------------
# DATABASE (Koha)
#--------------------------------------------------------------------
database.default.hostname = 14.139.92.12
database.default.database = koha_library
database.default.username = cqr
database.default.password = cqr123
database.default.DBDriver = MySQLi
database.default.DBPrefix =
database.default.port = 3306
database.default.charset = utf8mb4
database.default.DBCollat = utf8mb4_general_ci

# false in production (do not expose SQL errors to clients)
database.default.DBDebug = false

#--------------------------------------------------------------------
# API BASIC AUTH
#--------------------------------------------------------------------
api.basic.username = DLRL
api.basic.password = DLRL@2026

#--------------------------------------------------------------------
# PATRON API OPTIONS
#--------------------------------------------------------------------
# Default branchcode used on insert when not sent in JSON
api.defaultBranchCode = DLRL

# Comma-separated borrower attribute codes accepted by upsert
api.attributeCodes = DESIG,DIV,RT

#--------------------------------------------------------------------
# ENCRYPTION (optional — generate a new key for stronger security)
# php spark key:generate
#--------------------------------------------------------------------
# encryption.key =

#--------------------------------------------------------------------
# LOGGER
#--------------------------------------------------------------------
logger.threshold = 4
