From 8e5250a0af2ec6badfae35b0b7c09ea67cba9b28 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Fri, 23 Oct 2020 02:07:40 +0200 Subject: [PATCH] adapt nginx/lighttpd config to globeMil files --- 88-tar1090.conf | 2 +- 95-tar1090-otherport.conf | 2 +- nginx.conf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/88-tar1090.conf b/88-tar1090.conf index 5303fc3..d24cf84 100644 --- a/88-tar1090.conf +++ b/88-tar1090.conf @@ -38,7 +38,7 @@ $HTTP["url"] =~ "^/INSTANCE/data/aircraft\.json$" { "Cache-Control" => "public, max-age=0", ) } -$HTTP["url"] =~ "^/INSTANCE/data/globe_.*" { +$HTTP["url"] =~ "^/INSTANCE/data/globe.*" { compress.filetype = () setenv.add-response-header += ( "Cache-Control" => "public, max-age=0", diff --git a/95-tar1090-otherport.conf b/95-tar1090-otherport.conf index f9b192c..b62b83d 100644 --- a/95-tar1090-otherport.conf +++ b/95-tar1090-otherport.conf @@ -38,7 +38,7 @@ $HTTP["url"] =~ "^/INSTANCE/data/aircraft\.json$" { "Cache-Control" => "public, max-age=0", ) } -$HTTP["url"] =~ "^/INSTANCE/data/globe_.*" { +$HTTP["url"] =~ "^/INSTANCE/data/globe.*" { compress.filetype = () setenv.add-response-header += ( "Cache-Control" => "public, max-age=0", diff --git a/nginx.conf b/nginx.conf index 54d9d7f..8df1aa9 100644 --- a/nginx.conf +++ b/nginx.conf @@ -21,7 +21,7 @@ location /INSTANCE/data/ { add_header Cache-Control "public, max-age=0"; add_header Content-Encoding "gzip"; } - location ~ globe_.*\.binCraft$ { + location ~ globe.*\.binCraft$ { gzip off; add_header Cache-Control "public, max-age=0"; add_header Content-Encoding "gzip";