diff --git a/conf/nginx.conf b/conf/nginx.conf index 64cbe1e..3c5cf5d 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -2,6 +2,8 @@ location __PATH__/ { alias __INSTALL_DIR__/dist/; + + try_files $uri /$uri /index.html; index index.html; @@ -13,3 +15,13 @@ location __PATH__/ { # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; } + +# assets can be cached because they have hashed filenames +location __PATH__/assets { + expires 1w; + more_set_headers "Cache-Control: 'public, no-transform'"; +} + +location __PATH__/apple-app-site-association { + default_type application/json; +}