diff --git a/.env.example b/.env.example index ed7464f..2788b78 100644 --- a/.env.example +++ b/.env.example @@ -2,13 +2,13 @@ APP_NAME="Ladill QR Plus" APP_ENV=production APP_KEY= APP_DEBUG=false -APP_URL=https://qr.ladill.com +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=qr.ladill.com +QR_DOMAIN=qrplus.ladill.com DB_CONNECTION=mysql DB_HOST=127.0.0.1 diff --git a/DEPLOY.md b/DEPLOY.md index f4ee0b8..1f6672e 100644 --- a/DEPLOY.md +++ b/DEPLOY.md @@ -1,6 +1,6 @@ # Ladill QR Plus — deploy & cutover runbook -Standalone app for **utility QR codes** at `qr.ladill.com` (URL, WiFi, link +Standalone app for **utility QR codes** at `qrplus.ladill.com` (URL, WiFi, link list, business, app download). **vCard** is a separate future product (`vcard.ladill.com`). Commerce types (shop, menu, event, give, …) stay on the platform until Merchant/Events/Give extract. @@ -39,7 +39,7 @@ sudo mysql -e "GRANT ALL ON ladill_qr_plus.* TO 'ladill_qr_plus'@'127.0.0.1'; FL ```bash php artisan passport:client \ --name="Ladill QR Plus" \ - --redirect_uri="https://qr.ladill.com/sso/callback" + --redirect_uri="https://qrplus.ladill.com/sso/callback" ``` ## 4. Platform integration @@ -47,14 +47,14 @@ php artisan passport:client \ ```env BILLING_API_KEY_QR= IDENTITY_API_KEY_QR= -RP_QR_FRONTCHANNEL_LOGOUT=https://qr.ladill.com/sso/logout-frontchannel -LADILL_QR_APP_URL=https://qr.ladill.com +RP_QR_FRONTCHANNEL_LOGOUT=https://qrplus.ladill.com/sso/logout-frontchannel +LADILL_QR_APP_URL=https://qrplus.ladill.com ``` ## 5. nginx + TLS ```bash -sudo deployment/setup-service-subdomain-nginx.sh qr --app /var/www/ladill-qr-plus/current +sudo deployment/setup-service-subdomain-nginx.sh qrplus --app /var/www/ladill-qr-plus/current ``` Proxy `ladill.com/q/*` to this app after import (see platform nginx docs). @@ -79,7 +79,7 @@ php artisan qr-plus:import /tmp/qr-plus-export.json --commit ## 8. Smoke test -- `https://qr.ladill.com/up` → 200 +- `https://qrplus.ladill.com/up` → 200 - SSO login → create URL QR → wallet debited - `https://ladill.com/q/` resolves (after nginx proxy) - `account.ladill.com/qr-codes` redirects here diff --git a/composer.json b/composer.json index c55a1ce..f05cb5c 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "$schema": "https://getcomposer.org/schema.json", "name": "ladill/qr-plus", "type": "project", - "description": "Ladill QR Plus — utility QR codes at qr.ladill.com", + "description": "Ladill QR Plus — utility QR codes at qrplus.ladill.com", "keywords": [ "laravel", "framework" diff --git a/config/app.php b/config/app.php index 9ae095c..c7ae22a 100644 --- a/config/app.php +++ b/config/app.php @@ -123,11 +123,11 @@ return [ 'store' => env('APP_MAINTENANCE_STORE', 'database'), ], - // Platform identity surfaces (Zoho One model). Ladill QR Plus (qr.ladill.com). + // Platform identity surfaces (Zoho One model). Ladill QR Plus (qrplus.ladill.com). 'platform_domain' => env('PLATFORM_DOMAIN', parse_url((string) env('PLATFORM_URL', 'https://ladill.com'), PHP_URL_HOST) ?: 'ladill.com'), 'auth_domain' => env('AUTH_DOMAIN', 'auth.'.(parse_url((string) env('PLATFORM_URL', 'https://ladill.com'), PHP_URL_HOST) ?: 'ladill.com')), 'account_domain' => env('ACCOUNT_DOMAIN', 'account.'.(parse_url((string) env('PLATFORM_URL', 'https://ladill.com'), PHP_URL_HOST) ?: 'ladill.com')), - 'qr_domain' => env('QR_DOMAIN', parse_url((string) env('APP_URL', 'https://qr.ladill.com'), PHP_URL_HOST) ?: 'qr.ladill.com'), + 'qr_domain' => env('QR_DOMAIN', parse_url((string) env('APP_URL', 'https://qrplus.ladill.com'), PHP_URL_HOST) ?: 'qrplus.ladill.com'), 'servers_domain' => env('SERVERS_DOMAIN', 'servers.'.(parse_url((string) env('PLATFORM_URL', 'https://ladill.com'), PHP_URL_HOST) ?: 'ladill.com')), 'domains_domain' => env('DOMAINS_DOMAIN', 'domains.'.(parse_url((string) env('PLATFORM_URL', 'https://ladill.com'), PHP_URL_HOST) ?: 'ladill.com')), diff --git a/config/services.php b/config/services.php index f62219d..06d2548 100644 --- a/config/services.php +++ b/config/services.php @@ -23,7 +23,7 @@ return [ 'issuer' => 'https://'.config('app.auth_domain'), 'client_id' => env('LADILL_SSO_CLIENT_ID'), 'client_secret' => env('LADILL_SSO_CLIENT_SECRET'), - 'redirect' => rtrim((string) env('APP_URL', 'https://bird.ladill.com'), '/').'/sso/callback', + 'redirect' => rtrim((string) env('APP_URL', 'https://qrplus.ladill.com'), '/').'/sso/callback', ], 'ladill_webmail' => [