mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
Explicit gzip in sample nginx
This commit is contained in:
parent
711c802fee
commit
1661d7861f
1 changed files with 8 additions and 4 deletions
|
@ -1,8 +1,12 @@
|
|||
server {
|
||||
listen *:80;
|
||||
server_name koel.dev;
|
||||
root /var/www/koel;
|
||||
index index.php;
|
||||
listen *:80;
|
||||
server_name koel.dev;
|
||||
root /var/www/koel;
|
||||
index index.php;
|
||||
|
||||
gzip on;
|
||||
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/json;
|
||||
gzip_com_level 9;
|
||||
|
||||
# Whitelist only index.php, robots.txt, and those start with public/ or api/
|
||||
if ($request_uri !~ ^/$|index\.php|robots\.txt|api/|public/) {
|
||||
|
|
Loading…
Reference in a new issue