For installed LibreTranslate 1.9.6, Python 3.11, cPanel Passenger.
Stop the Terminal test with Ctrl+C. Back up existing passenger_wsgi.py. Upload the supplied file into /home/shivpree/libretranslate.
Generate a private key with: python -c "import secrets; print(secrets.token_hex(32))"
Set LT_SITE_KEY to this value in cPanel Setup Python App environment variables. Save and restart the app. Never share the key or put it in browser JavaScript.
Verify https://translate.shivpreetcreations.com/languages returns English/Spanish.
Academy admin Integrations Translation: provider libretranslate, endpoint https://translate.shivpreetcreations.com/translate, API key same LT_SITE_KEY. Initially test Spanish only. Other models are not yet loaded.
The custom gate requires the key on every translation POST and disables other endpoints except GET languages/health. Existing academy server sends API key privately. Service does not bind a port under Passenger.
Verified syntax and factory against upstream v1.9.6 source; live Passenger hosting has not been tested.
