#--------------------------------------------------------------------
# PRODUCTION ENVIRONMENT TEMPLATE
#--------------------------------------------------------------------
# How to use:
#   1. Update app.allowedHostnames to your real domain(s)
#   2. Update PRODUCTION DATABASE section with your live DB details
#   3. Copy this file over .env when going live:
#        copy .env-production .env
#   4. Reload Apache/Nginx (Laragon → Reload)
#--------------------------------------------------------------------

#--------------------------------------------------------------------
# ENVIRONMENT
#--------------------------------------------------------------------

CI_ENVIRONMENT = production

#--------------------------------------------------------------------
# SECURITY: ALLOWED HOSTNAMES
#--------------------------------------------------------------------
# REQUIRED IN PRODUCTION.
# No http/https and no port numbers.
# Example live:
#   app.allowedHostnames = 'onak.example.com,www.onak.example.com'
# Local production test:
#   app.allowedHostnames = 'localhost,pos-system.test'

app.allowedHostnames = 'onak.example.com,www.onak.example.com'

#--------------------------------------------------------------------
# PRODUCTION DATABASE (used when CI_ENVIRONMENT = production)
#--------------------------------------------------------------------
# SAMPLE DETAILS — replace with your real hosting/server values before go-live.
# In production mode OSPOS uses database.default.*

database.default.hostname = 'db.onak.example.com'
database.default.database = 'onak_pos_prod'
database.default.username = 'onak_pos_user'
database.default.password = 'ChangeMe_StrongPassword123!'
database.default.DBDriver = 'MySQLi'
database.default.DBPrefix = 'ospos_'
database.default.port = 3306

# Optional remote MySQL example (commented):
# database.default.hostname = '192.168.1.50'
# database.default.database = 'onak_pos_prod'
# database.default.username = 'onak_pos_user'
# database.default.password = 'ChangeMe_StrongPassword123!'
# database.default.port = 3306

# Optional shared-hosting cPanel example (commented):
# database.default.hostname = 'localhost'
# database.default.database = 'cpaneluser_pos'
# database.default.username = 'cpaneluser_pos'
# database.default.password = 'YourHostingDbPassword'
# database.default.port = 3306

#--------------------------------------------------------------------
# DEVELOPMENT DATABASE (local Laragon / XAMPP)
#--------------------------------------------------------------------
# Used only when CI_ENVIRONMENT = development

database.development.hostname = 'localhost'
database.development.database = 'pos'
database.development.username = 'root'
database.development.password = ''
database.development.DBDriver = 'MySQLi'
database.development.DBPrefix = 'ospos_'
database.development.port = 3306

#--------------------------------------------------------------------
# TESTS DATABASE
#--------------------------------------------------------------------

database.tests.hostname = 'localhost'
database.tests.database = 'pos'
database.tests.username = 'root'
database.tests.password = ''
database.tests.DBDriver = 'MySQLi'
database.tests.DBPrefix = 'ospos_'
database.tests.port = 3306

#--------------------------------------------------------------------
# ENCRYPTION
#--------------------------------------------------------------------
# Keep this key stable after go-live (changing it can break encrypted data).
# To generate a new key: php spark key:generate

encryption.key = '03e2cbd95d5de07c3e38feb40f566746b21241fcd649d83ec2a23a7cce34dca3'

#--------------------------------------------------------------------
# LOGGER
# - 0 = Disables logging, Error logging TURNED OFF
# - 1 = Emergency Messages - System is unusable
# - 2 = Alert Messages - Action Must Be Taken Immediately
# - 3 = Critical Messages - Application component unavailable, unexpected exception.
# - 4 = Runtime Errors - Don't need immediate action, but should be monitored.
# - 5 = Warnings - Exceptional occurrences that are not errors.
# - 6 = Notices - Normal but significant events.
# - 7 = Info - Interesting events, like user logging in, etc.
# - 8 = Debug - Detailed debug information.
# - 9 = All Messages
#--------------------------------------------------------------------

logger.threshold = 4
app.db_log_enabled = false

#--------------------------------------------------------------------
# HONEYPOT
#--------------------------------------------------------------------

honeypot.hidden = true
honeypot.label = 'Fill This Field'
honeypot.name = 'honeypot'
honeypot.template = '<label>{label}</label><input type="text" name="{name}" value="">'
honeypot.container = '<div style="display:none">{template}</div>'
