LifeMate — Personal, Family & Learning Companion
feat/learning-content-operations
chore/phase1-repository-cleanup
deploy/stable-web-apk
deployment-static
design/mobile-accessibility-v2
design/mobile-navigation-review
docs/child-education-access-decision
docs/offline-data-rescue-options
docs/owner-guide-and-delivery-plan
docs/phase1-policy-options
docs/public-review-live-2026-10-15
feat/aparat-learning-library
feat/child-device-safety
feat/child-identity-schema
feat/flutter-mobile-navigation
feat/learning-content-operations
feat/local-signing-preflight
feat/online-family-stage0
feat/personal-encrypted-recovery
feat/private-planner-series-api
feat/public-review-page
feat/standalone-weekly-planner
feat/weekly-planner-android
final-feature-1/iran-family-school
fix/auth-abuse-expiry-safety
fix/auth-expiry-after-lock
fix/backend-request-safety
fix/lifeguide-bootstrap-naming-ci
fix/lifeguide-pages-qa-base-preflight
fix/lifeguide-qa-pages-env-deployment
fix/local-task-persistence
fix/managed-child-session-boundary
fix/personal-jalali-dates
fix/personal-notification-controls
fix/personal-upgrade-delivery-guard
fix/sms-approval-gates
fix/study-duration-display
infra/cloudflare-neon-migration
infra/lifeguide-cloudflare-qa
infra/lifeguide-github-pages-qa
infra/lifeguide-supabase-qa
main
phase-1/foundation-completion
phase-2/product-foundation-identity
phase-3/planner-school-family-core
phase-4/ai-learning-wellbeing
phase-5/hardening-observability-release
test/android-reminder-acceptance
test/personal-notification-settings
test/personal-recovery-acceptance
test/role-entry-apk
| 1 | # One HTTPS origin for PWA, API and operator-signed APK downloads. |
| 2 | resolver 127.0.0.11 valid=10s ipv6=off; |
| 3 | upstream lifeguide_api { |
| 4 | zone lifeguide_api 64k; |
| 5 | # nginx >=1.27.3 supports DNS refresh for open-source upstream servers. |
| 6 | server api-proxy:8080 resolve; |
| 7 | } |
| 8 | |
| 9 | server { |
| 10 | listen 8081; |
| 11 | server_name localhost; |
| 12 | location = /gateway-health { access_log off; return 200 'ok'; } |
| 13 | location / { return 404; } |
| 14 | } |
| 15 | |
| 16 | server { |
| 17 | listen 443 ssl; |
| 18 | server_name _; |
| 19 | ssl_certificate /etc/nginx/tls/server.pem; |
| 20 | ssl_certificate_key /etc/nginx/tls/server-key.pem; |
| 21 | ssl_protocols TLSv1.2 TLSv1.3; |
| 22 | ssl_session_cache shared:SSL:10m; |
| 23 | ssl_session_tickets off; |
| 24 | access_log off; |
| 25 | error_log /var/log/nginx/error.log crit; |
| 26 | |
| 27 | root /usr/share/nginx/html; |
| 28 | index index.html; |
| 29 | client_max_body_size 128k; |
| 30 | include /etc/nginx/security-headers.inc; |
| 31 | proxy_set_header Host $host; |
| 32 | proxy_set_header X-Forwarded-Proto https; |
| 33 | proxy_set_header X-Forwarded-For $remote_addr; |
| 34 | |
| 35 | location = /health { |
| 36 | include /etc/nginx/security-headers.inc; |
| 37 | add_header Cache-Control 'no-store' always; |
| 38 | proxy_pass http://lifeguide_api/health; |
| 39 | } |
| 40 | location = /ready { |
| 41 | include /etc/nginx/security-headers.inc; |
| 42 | add_header Cache-Control 'no-store' always; |
| 43 | proxy_pass http://lifeguide_api/ready; |
| 44 | } |
| 45 | location = /live { |
| 46 | include /etc/nginx/security-headers.inc; |
| 47 | add_header Cache-Control 'no-store' always; |
| 48 | proxy_pass http://lifeguide_api/live; |
| 49 | } |
| 50 | location = /api { return 308 /api/; } |
| 51 | location /api/ { |
| 52 | include /etc/nginx/security-headers.inc; |
| 53 | add_header Cache-Control 'no-store' always; |
| 54 | proxy_pass http://lifeguide_api/; |
| 55 | proxy_set_header Host $host; |
| 56 | proxy_set_header X-Forwarded-Proto https; |
| 57 | proxy_set_header X-Forwarded-For $remote_addr; |
| 58 | proxy_connect_timeout 5s; |
| 59 | proxy_read_timeout 30s; |
| 60 | proxy_buffering off; |
| 61 | } |
| 62 | location = /config.json { |
| 63 | include /etc/nginx/security-headers.inc; |
| 64 | add_header Cache-Control 'no-store' always; |
| 65 | try_files $uri =404; |
| 66 | } |
| 67 | location ~* /(index\.html|manifest\.json|flutter_bootstrap\.js|flutter_service_worker\.js|lifeguide_service_worker\.js|main\.dart\.js)$ { |
| 68 | include /etc/nginx/security-headers.inc; |
| 69 | add_header Cache-Control 'no-cache, max-age=0, must-revalidate' always; |
| 70 | try_files $uri =404; |
| 71 | } |
| 72 | location /downloads/ { |
| 73 | include /etc/nginx/security-headers.inc; |
| 74 | add_header Cache-Control 'no-cache, max-age=0, must-revalidate' always; |
| 75 | try_files $uri =404; |
| 76 | } |
| 77 | location / { |
| 78 | include /etc/nginx/security-headers.inc; |
| 79 | add_header Cache-Control 'no-cache, max-age=0, must-revalidate' always; |
| 80 | try_files $uri $uri/ /index.html; |
| 81 | } |
| 82 | } |