##########################################################################
# MORRIS AUTO — Ready-to-run environment (.env)
#
# APP_KEY is ALREADY generated for you. You only need to:
#   1) Import  deploy/morris_auto.sql  into a database in phpMyAdmin.
#   2) Set the 4 database lines below (DB_DATABASE / DB_USERNAME /
#      DB_PASSWORD / DB_HOST) to match that database.
#   3) Set APP_URL to the address you open the site at.
# Then load the site. Default admin login: admin@morrisauto.com / password
##########################################################################

APP_NAME="Morris Auto"
APP_ENV=production
APP_KEY=base64:lHJ8tuz2ReELrDWWOErKRM5ycpRFxNTXuqv05iqEIgM=
APP_DEBUG=false
APP_TIMEZONE=UTC
APP_URL=http://localhost/morris-auto/public

APP_LOCALE=en
APP_FALLBACK_LOCALE=en

# ------------------------------------------------------------------
# DATABASE (MySQL / MariaDB) — recommended for WAMP, XAMPP & cPanel
# ------------------------------------------------------------------
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=morris_auto
DB_USERNAME=root
DB_PASSWORD=

# On XAMPP/WAMP the default user is "root" with an empty password.
# On cPanel use the database + user you created in "MySQL Databases".

# ------------------------------------------------------------------
# SESSION / CACHE / QUEUE
# ------------------------------------------------------------------
SESSION_DRIVER=database
SESSION_LIFETIME=120
CACHE_STORE=database
QUEUE_CONNECTION=database
FILESYSTEM_DISK=public

# ------------------------------------------------------------------
# MAIL (used for enquiries / notifications)
# ------------------------------------------------------------------
MAIL_MAILER=smtp
MAIL_HOST=smtp.your-host.com
MAIL_PORT=587
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS="info@your-domain.com"
MAIL_FROM_NAME="${APP_NAME}"

# ------------------------------------------------------------------
# WHATSAPP CLOUD API (optional — for automated messaging)
# Configure the token + phone id in Admin → Settings → Integrations
# ------------------------------------------------------------------
WHATSAPP_API_TOKEN=
WHATSAPP_PHONE_ID=

LOG_CHANNEL=stack
LOG_LEVEL=error

# ------------------------------------------------------------------
# SECURITY
# ------------------------------------------------------------------
# Clickjacking protection (X-Frame-Options + CSP frame-ancestors). Keep true
# in production; auto-relaxed on localhost/preview hosts.
SECURITY_FRAME_GUARD=true
# Send HSTS header (only enable once you have a valid HTTPS certificate).
SECURITY_HSTS=false
# Content-Security-Policy on/off, and extra allowed hosts (space separated).
SECURITY_CSP=true
SECURITY_CSP_EXTRA=
# Force all generated URLs to https (useful behind a proxy that terminates TLS).
FORCE_HTTPS=false

# ------------------------------------------------------------------
# CDN — serve /css, /js, /images and uploaded assets from a CDN.
# You can also set this in Admin → Settings → Security (cdn_url).
# ------------------------------------------------------------------
CDN_URL=
ASSET_URL=

# ------------------------------------------------------------------
# VOICE / VIDEO CALLING (WebRTC)
# STUN works out of the box. For reliable calls across different networks/NATs,
# add a TURN server (self-hosted coturn or a provider) in
# Admin → Settings → Calling (turn_url / turn_username / turn_credential).
# ------------------------------------------------------------------

# ------------------------------------------------------------------
# SOCIAL LOGIN (Laravel Socialite)
# Leave blank to hide a provider's button. Set the redirect URI in each
# provider's developer console to: https://YOUR-DOMAIN/auth/{provider}/callback
# ------------------------------------------------------------------
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_REDIRECT_URI="${APP_URL}/auth/google/callback"

FACEBOOK_CLIENT_ID=
FACEBOOK_CLIENT_SECRET=
FACEBOOK_REDIRECT_URI="${APP_URL}/auth/facebook/callback"

GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GITHUB_REDIRECT_URI="${APP_URL}/auth/github/callback"
