#--------------------------------------------------------------------
# WALE — Environment Configuration
#
# Copy this file to ".env" and fill in your own values before going live.
# Lines beginning with "#" are comments / disabled settings.
#--------------------------------------------------------------------

#--------------------------------------------------------------------
# ENVIRONMENT
# Keep this as "production" on a live site (hides internal errors from
# visitors). Only switch to "development" temporarily while troubleshooting,
# then switch it back — development mode exposes file paths and stack traces.
#--------------------------------------------------------------------

CI_ENVIRONMENT = production

#--------------------------------------------------------------------
# APP
# Set this to the full public URL where WALE is installed (with trailing /).
#--------------------------------------------------------------------

app.baseURL = 'http://example.com/'

# If you have trouble with `.`, you could also use `_`.
# app_baseURL = ''
# app.forceGlobalSecureRequests = false
# app.CSPEnabled = false

#--------------------------------------------------------------------
# DEMO / REVIEW MODE
# Set to true ONLY on a public "look-around" demo instance. It shows a notice
# banner and makes the whole panel read-only (buyers can browse every screen
# but cannot change or delete the shared demo data). Keep false for real installs.
#--------------------------------------------------------------------

DEMO_MODE = false

#--------------------------------------------------------------------
# DATABASE
#--------------------------------------------------------------------

# database.default.hostname = localhost
# database.default.database = 
# database.default.username = 
# database.default.password = 
# database.default.DBDriver = MySQLi
# database.default.DBPrefix =
# database.default.port = 3306


# If you use MySQLi as tests, first update the values of Config\Database::$tests.
# database.tests.hostname = localhost
# database.tests.database = ci4_test
# database.tests.username = root
# database.tests.password = root
# database.tests.DBDriver = MySQLi
# database.tests.DBPrefix =
# database.tests.charset = utf8mb4
# database.tests.DBCollat = utf8mb4_general_ci
# database.tests.port = 3306

#--------------------------------------------------------------------
# ENCRYPTION
#--------------------------------------------------------------------

# encryption.key =

#--------------------------------------------------------------------
# SESSION
#--------------------------------------------------------------------

# session.driver = 'CodeIgniter\Session\Handlers\FileHandler'
# session.savePath = null

#--------------------------------------------------------------------
# LOGGER
#--------------------------------------------------------------------

# logger.threshold = 4

#--------------------------------------------------------------------
# WALE - APPLICATION CONFIG
#--------------------------------------------------------------------

# OpenAI — get a key at https://platform.openai.com/api-keys (optional:
# tenants can also set their own key inside the app under Settings → AI Config)
OPENAI_API_KEY = sk-your-openai-key-here
OPENAI_MODEL   = gpt-4o-mini

# Meta WhatsApp Cloud API.
# TOKEN / PHONE_NUMBER_ID / VERIFY_TOKEN are an OPTIONAL single-tenant fallback:
# in normal multi-tenant use each business enters its own credentials in the app
# (Settings → WhatsApp), so you can leave these three as placeholders.
WHATSAPP_TOKEN           = your-permanent-whatsapp-access-token
WHATSAPP_PHONE_NUMBER_ID = your-phone-number-id
WHATSAPP_VERIFY_TOKEN    = choose-any-secret-verify-token
# API_VERSION applies to ALL tenants — bump it here when Meta releases a newer
# Graph API version (no code change needed). Leave as-is if unsure.
WHATSAPP_API_VERSION     = v25.0

# JWT / encryption secret — REQUIRED. Used for API auth AND to encrypt stored
# WhatsApp/OpenAI tokens. Set this to a long, RANDOM, unique value for every
# install (e.g. run: php -r "echo bin2hex(random_bytes(32));"). Never reuse the
# default below in production — doing so makes all stored tokens insecure.
JWT_SECRET = c2cf0ac3e9d6d9a84faeb7f4b1326526ee1d22a157d01415a3c986dd89c04500

# App
APP_NAME    = "WALE — WhatsApp AI Lead Engine"
SAAS_PLAN_FREE_LIMIT = 100
