summaryrefslogtreecommitdiff
path: root/site/nginx.conf
diff options
context:
space:
mode:
Diffstat (limited to 'site/nginx.conf')
-rw-r--r--site/nginx.conf20
1 files changed, 20 insertions, 0 deletions
diff --git a/site/nginx.conf b/site/nginx.conf
new file mode 100644
index 0000000..310d68d
--- /dev/null
+++ b/site/nginx.conf
@@ -0,0 +1,20 @@
+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;
+ }
+}