From b39e07788e5df67764eefc2e1e0ecf0d915d4afb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 17 Oct 2023 17:46:20 +0200 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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; +}