2018-11-30 14:47:44 +01:00
|
|
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
|
|
|
location __PATH__/ {
|
2019-02-26 23:58:19 +01:00
|
|
|
alias __FINALPATH__/;
|
2016-03-01 10:47:41 +01:00
|
|
|
|
2018-11-30 14:47:44 +01:00
|
|
|
if ($scheme = http) {
|
|
|
|
rewrite ^ https://$server_name$request_uri? permanent;
|
|
|
|
}
|
|
|
|
index index.html ;
|
|
|
|
# default_type text/html;
|
2016-03-01 10:47:41 +01:00
|
|
|
|
2021-09-07 09:58:42 +02:00
|
|
|
more_set_headers "Content-Security-Policy : default-src 'self'; font-src data:; script-src __DOMAIN__ 'unsafe-inline' 'unsafe-eval'; style-src 'unsafe-inline' __DOMAIN__ blob:; connect-src 'self' ws: https:; child-src 'self' blob:; worker-src 'self' blob:; img-src 'self' data: blob: https://services.keeweb.info/; object-src 'none'; form-action 'none';";
|
2016-03-01 10:47:41 +01:00
|
|
|
}
|