LifeMate — Personal, Family & Learning Companion
deploy: add PWA nginx config
davoodmehraban89 committed
Oct 5, 2026 at 21:57 UTC
97af3036d9c0b4bf4a73a6aab7aa6e0bed9ec3c4
1 file changed
+26
apps/lifemate/deploy/nginx.conf
new
+26
@@ -0,0 +1,26 @@
1
+server {
2
+ listen 80;
3
+ server_name _;
4
+
5
+ root /usr/share/nginx/html;
6
+ index index.html;
7
+
8
+ add_header X-Content-Type-Options nosniff always;
9
+ add_header Referrer-Policy no-referrer always;
10
+ add_header X-Frame-Options SAMEORIGIN always;
11
+
12
+ location = /health {
13
+ access_log off;
14
+ add_header Content-Type text/plain;
15
+ return 200 'ok';
16
+ }
17
+
18
+ location /downloads/ {
19
+ add_header Cache-Control "public, max-age=300";
20
+ try_files $uri =404;
21
+ }
22
+
23
+ location / {
24
+ try_files $uri $uri/ /index.html;
25
+ }
26
+}