defeb7f2d2
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.
19 lines
726 B
Plaintext
19 lines
726 B
Plaintext
# 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";
|
|
}
|