# ============================================================================
# KCU Digital — production .env for Spaceship shared hosting
# ============================================================================
# Copy this file to the application root as ".env" (note the leading dot),
# then fill in every value marked CHANGE-ME.
#
#   cp deploy/env-production-template.txt .env
#   php artisan key:generate
# ============================================================================

APP_NAME="King Ceasor University"
APP_ENV=production
APP_KEY=
APP_DEBUG=false
APP_TIMEZONE=Africa/Kampala
APP_LOCALE=en

# The address you will actually browse. Must match exactly, including https
# and any subdomain — password-reset and verification links are built from it.
APP_URL=https://CHANGE-ME.example.com

APP_MAINTENANCE_DRIVER=file
BCRYPT_ROUNDS=12

# ---------------------------------------------------------------- Logging
# Daily files, 14 days retained. Never "debug" in production.
LOG_CHANNEL=stack
LOG_STACK=daily
LOG_DAILY_DAYS=14
LOG_LEVEL=error

# --------------------------------------------------------------- Database
# From cPanel > MySQL Databases. cPanel prefixes both the database and the
# user with your account name, e.g. cpaneluser_kcu / cpaneluser_kcuapp.
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=CHANGE-ME_kcu
DB_USERNAME=CHANGE-ME_kcuapp
DB_PASSWORD=CHANGE-ME

# --------------------------------------------------------------- Sessions
SESSION_DRIVER=database
SESSION_LIFETIME=120
SESSION_ENCRYPT=true
SESSION_SECURE_COOKIE=true
SESSION_HTTP_ONLY=true
SESSION_SAME_SITE=lax

# ------------------------------------------------------------ Queue/cache
# Shared hosting has no Supervisor, so the queue is drained by a cron job.
# See DEPLOY-SPACESHIP.md, step 8.
QUEUE_CONNECTION=database
CACHE_STORE=database

# ---------------------------------------------------------------- Storage
# Applicant documents and generated letters go to storage/app/private,
# which sits outside the web root.
FILESYSTEM_DISK=local

# ------------------------------------------------------------------- Mail
# cPanel > Email Accounts. Create admissions@yourdomain first, then use it
# here. Port 465 + ssl also works on most cPanel servers.
MAIL_MAILER=smtp
MAIL_HOST=mail.CHANGE-ME.example.com
MAIL_PORT=587
MAIL_USERNAME=admissions@CHANGE-ME.example.com
MAIL_PASSWORD=CHANGE-ME
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS="admissions@CHANGE-ME.example.com"
MAIL_FROM_NAME="King Ceasor University"

# ------------------------------------------------------------- Admissions
KCU_APPLICATION_NUMBER_PREFIX=KCU
KCU_ADMISSION_NUMBER_PREFIX=KCU

# --------------------------------------------------------------- Payments
# "manual" = bank deposit confirmed by a Finance Officer. This needs no
# third-party credentials and is the right setting for a test deployment.
PAYMENT_PROVIDER=manual
PAYMENT_WEBHOOK_SECRET=

# -------------------------------------------------------------------- SMS
# "log" writes messages to the log instead of sending them. Keep this until
# an SMS aggregator is contracted.
SMS_PROVIDER=log
SMS_API_KEY=
SMS_SENDER_ID=KCU

VITE_APP_NAME="${APP_NAME}"
