server { listen 80; root /usr/share/nginx/html; index index.html; # a new build replaces these files in place, so have clients check add_header Cache-Control "no-cache"; location ~ \.apk$ { default_type application/vnd.android.package-archive; add_header Cache-Control "no-cache"; } location = /SHA256SUMS { default_type text/plain; add_header Cache-Control "no-cache"; } location / { try_files $uri $uri/ =404; } }