feat: add falah-shortcodes WP plugin and Falah Mobile deploy script

Implements all missing shortcodes for ummah.falahos.my:
- [prayer_times] — Aladhan API, no auth required
- [dhikr_counter] — localStorage-backed, works offline
- [qibla_compass] — browser Geolocation + DeviceOrientation
- [daily_verse] — AlQuran.cloud API, no auth required
- [nur_ai_chat], [falah_wallet], [souq_marketplace] — iframe Falah Mobile
- [falah_dashboard] — auto-injects dashboard content into empty page

Also adds deploy-falah-mobile.sh to build and run the Next.js app on
13.140.161.244:4013, and Nginx reverse proxy config for falahos.my/mobile.
This commit is contained in:
Antigravity AI
2026-07-06 15:58:03 +08:00
parent c7ae33528e
commit defeb7f2d2
6 changed files with 1081 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
# Nginx reverse proxy config for Falah Mobile
# Add this inside the server {} block for falahos.my
location /mobile {
proxy_pass http://127.0.0.1:4013;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache_bypass $http_upgrade;
# Allow iframes from ummah.falahos.my
add_header X-Frame-Options "ALLOW-FROM https://ummah.falahos.my";
add_header Content-Security-Policy "frame-ancestors 'self' https://ummah.falahos.my";
}