server { listen 80; server_name _; root /usr/share/nginx/html; index index.html; # Tinode webapp uses hash-based client-side routing, so any unknown path # can safely fall back to index.html. location / { try_files $uri $uri/ /index.html; } location /umd/ { add_header Cache-Control "public, max-age=31536000, immutable"; } location /img/ { add_header Cache-Control "public, max-age=86400"; } }