mirror of
https://github.com/koel/koel
synced 2024-09-20 06:11:53 +00:00
Update example nginx config for sw.js
This commit is contained in:
parent
14e866f062
commit
7baba197d5
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ server {
|
|||
gzip_comp_level 9;
|
||||
|
||||
# Whitelist only index.php, robots.txt, and some special routes
|
||||
if ($request_uri !~ ^/$|index\.php|robots\.txt|(public|api)/|remote|api-docs) {
|
||||
if ($request_uri !~ ^/$|index\.php|robots\.txt|(public|api)/|remote|api-docs|sw\.js) {
|
||||
return 404;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue