2023-10-17 16:59:30 +02:00
|
|
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
|
|
|
location __PATH__/ {
|
|
|
|
|
|
|
|
alias __INSTALL_DIR__/dist/;
|
2023-10-17 17:46:20 +02:00
|
|
|
|
|
|
|
try_files $uri /$uri /index.html;
|
2023-10-17 16:59:30 +02:00
|
|
|
|
|
|
|
index index.html;
|
|
|
|
|
|
|
|
more_set_headers "X-Frame-Options: SAMEORIGIN";
|
|
|
|
more_clear_headers "X-Content-Type-Options";
|
|
|
|
more_set_headers "X-XSS-Protection: '1; mode=block'";
|
|
|
|
more_set_headers "Content-Security-Policy: frame-ancestors 'self'";
|
|
|
|
|
|
|
|
# Include SSOWAT user panel.
|
|
|
|
include conf.d/yunohost_panel.conf.inc;
|
|
|
|
}
|
2023-10-17 17:46:20 +02:00
|
|
|
|
|
|
|
# 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;
|
|
|
|
}
|