# OgaSite API — LiteSpeed / Passenger .htaccess (house standard)
#
# cPanel normally writes this file when you create the app in
# "Setup Node.js App". If you must edit it, keep this shape.
# Replace CPANEL_USER with your cPanel username and adjust the Node version.
#
# DO NOT put secrets (DB password, JWT secret) in this file — set them in
# Setup Node.js App → Environment variables instead.

# DO NOT REMOVE. CLOUDLINUX PASSENGER CONFIGURATION BEGIN
PassengerAppRoot "/home/CPANEL_USER/ogasite-api"
PassengerBaseURI "/"
PassengerNodejs "/home/CPANEL_USER/nodevenv/ogasite-api/20/bin/node"
PassengerAppType node
PassengerStartupFile server.js
# DO NOT REMOVE. CLOUDLINUX PASSENGER CONFIGURATION END

<IfModule Litespeed>
  SetEnv NODE_ENV production
</IfModule>

# Force HTTPS
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
