Deploy Ladill QR Plus / deploy (push) Successful in 2m2s
Create was making three sequential public HTTPS billing calls (~400ms each) while holding a DB transaction open for image generation. Use loopback DNS forcing, cache balances briefly, return balance from debit, regenerate images only when style changes, and keep remote work outside the DB transaction.
50 lines
1.0 KiB
Bash
50 lines
1.0 KiB
Bash
APP_NAME="Ladill QR Plus"
|
|
APP_ENV=production
|
|
APP_KEY=
|
|
APP_DEBUG=false
|
|
APP_URL=https://qrplus.ladill.com
|
|
|
|
PLATFORM_URL=https://ladill.com
|
|
PLATFORM_DOMAIN=ladill.com
|
|
AUTH_DOMAIN=auth.ladill.com
|
|
ACCOUNT_DOMAIN=account.ladill.com
|
|
QR_DOMAIN=qrplus.ladill.com
|
|
|
|
DB_CONNECTION=mysql
|
|
DB_HOST=127.0.0.1
|
|
DB_PORT=3306
|
|
DB_DATABASE=ladill_qr_plus
|
|
DB_USERNAME=ladill_qr_plus
|
|
DB_PASSWORD=
|
|
|
|
REDIS_CLIENT=phpredis
|
|
REDIS_HOST=127.0.0.1
|
|
REDIS_PASSWORD=null
|
|
REDIS_PORT=6379
|
|
|
|
SESSION_DRIVER=redis
|
|
# Idle web session length in minutes (1440 = 24 hours of inactivity).
|
|
SESSION_LIFETIME=1440
|
|
SESSION_DOMAIN=.ladill.com
|
|
|
|
LADILL_SSO_CLIENT_ID=
|
|
LADILL_SSO_CLIENT_SECRET=
|
|
|
|
BILLING_API_URL=https://ladill.com/api/billing
|
|
# Same-server: set to 127.0.0.1 to skip public hairpin latency on billing calls
|
|
BILLING_API_FORCE_IP=127.0.0.1
|
|
BILLING_API_KEY_QR=
|
|
|
|
IDENTITY_API_URL=https://ladill.com/api
|
|
IDENTITY_API_KEY_QR=
|
|
|
|
AFIA_ENABLED=true
|
|
AFIA_PRODUCT=qr
|
|
AFIA_PROVIDER=openai
|
|
AFIA_MODEL=gpt-4o-mini
|
|
AFIA_API_KEY=
|
|
|
|
LINK_PUBLIC_DOMAIN=ladl.link
|
|
|
|
VITE_APP_NAME="${APP_NAME}"
|