Update defaults, SSO redirect, and deploy runbook for the new subdomain. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
@@ -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=<same>
|
||||
IDENTITY_API_KEY_QR=<same>
|
||||
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/<code>` resolves (after nginx proxy)
|
||||
- `account.ladill.com/qr-codes` redirects here
|
||||
|
||||
+1
-1
@@ -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"
|
||||
|
||||
+2
-2
@@ -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')),
|
||||
|
||||
|
||||
+1
-1
@@ -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' => [
|
||||
|
||||
Reference in New Issue
Block a user