indentation to spaces
indentation to spaces

--- a/varnish-conf/lib/bigfiles.vcl
+++ b/varnish-conf/lib/bigfiles.vcl
@@ -1,9 +1,9 @@
 # bigfiles.vcl -- Bypass Cache for Large Files
 
 sub vcl_fetch {
-	# Bypass cache for files > 10 MB
-	if (std.integer(beresp.http.Content-Length, 0) > 10485760) {
-		return (hit_for_pass);
-	}
+    # Bypass cache for files > 10 MB
+    if (std.integer(beresp.http.Content-Length, 0) > 10485760) {
+        return (hit_for_pass);
+    }
 }
 

--- a/varnish-conf/lib/bigfiles_pipe.vcl
+++ b/varnish-conf/lib/bigfiles_pipe.vcl
@@ -7,17 +7,17 @@
 # 3.0.3.  In 3.0.3+, hit_for_pass in vcl_fetch is all that is necessary.
 
 sub vcl_recv {
-	if (req.http.X-Pipe-Big-File && req.restarts > 0) {
-		unset req.http.X-Pipe-Big-File;
-		return (pipe);
-	}
+    if (req.http.X-Pipe-Big-File && req.restarts > 0) {
+        unset req.http.X-Pipe-Big-File;
+        return (pipe);
+    }
 }
 
 sub vcl_fetch {
-	# Bypass cache for files > 10 MB
-	if (std.integer(beresp.http.Content-Length, 0) > 10485760) {
-		set req.http.X-Pipe-Big-File = "Yes";
-		return (restart);
-	}
+    # Bypass cache for files > 10 MB
+    if (std.integer(beresp.http.Content-Length, 0) > 10485760) {
+        set req.http.X-Pipe-Big-File = "Yes";
+        return (restart);
+    }
 }
 

--- a/varnish-conf/lib/cloudflare.vcl
+++ b/varnish-conf/lib/cloudflare.vcl
@@ -4,38 +4,38 @@
 # get set appropriately for all requests.
 
 acl official_cloudflare {
-	# https://www.cloudflare.com/ips-v4
-	"204.93.240.0"/24;
-	"204.93.177.0"/24;
-	"199.27.128.0"/21;
-	"173.245.48.0"/20;
-	"103.21.244.0"/22;
-	"103.22.200.0"/22;
-	"103.31.4.0"/22;
-	"141.101.64.0"/18;
-	"108.162.192.0"/18;
-	"190.93.240.0"/20;
-	"188.114.96.0"/20;
-	"197.234.240.0"/22;
-	"198.41.128.0"/17;
-	"162.158.0.0"/15;
-	# https://www.cloudflare.com/ips-v6
-	"2400:cb00::"/32;
-	"2606:4700::"/32;
-	"2803:f800::"/32;
-	"2405:b500::"/32;
-	"2405:8100::"/32;
+    # https://www.cloudflare.com/ips-v4
+    "204.93.240.0"/24;
+    "204.93.177.0"/24;
+    "199.27.128.0"/21;
+    "173.245.48.0"/20;
+    "103.21.244.0"/22;
+    "103.22.200.0"/22;
+    "103.31.4.0"/22;
+    "141.101.64.0"/18;
+    "108.162.192.0"/18;
+    "190.93.240.0"/20;
+    "188.114.96.0"/20;
+    "197.234.240.0"/22;
+    "198.41.128.0"/17;
+    "162.158.0.0"/15;
+    # https://www.cloudflare.com/ips-v6
+    "2400:cb00::"/32;
+    "2606:4700::"/32;
+    "2803:f800::"/32;
+    "2405:b500::"/32;
+    "2405:8100::"/32;
 }
 
 sub vcl_recv {
-	# Set the CF-Connecting-IP header
-	# If the client.ip is trusted, we leave the header alone if present.
-	if (req.http.CF-Connecting-IP) {
-		if (client.ip !~ official_cloudflare && client.ip !~ cloudflare) {
-			set req.http.CF-Connecting-IP = client.ip;
-		}
-	} else {
-		set req.http.CF-Connecting-IP = client.ip;
-	}
+    # Set the CF-Connecting-IP header
+    # If the client.ip is trusted, we leave the header alone if present.
+    if (req.http.CF-Connecting-IP) {
+        if (client.ip !~ official_cloudflare && client.ip !~ cloudflare) {
+            set req.http.CF-Connecting-IP = client.ip;
+        }
+    } else {
+        set req.http.CF-Connecting-IP = client.ip;
+    }
 }
 

--- a/varnish-conf/lib/mobile_cache.vcl
+++ b/varnish-conf/lib/mobile_cache.vcl
@@ -12,9 +12,9 @@
 # the cache.
 
 sub vcl_hash {
-	# General User-Agent list (anything that remotely looks like a mobile device)
-	if (req.http.User-Agent ~ "(?i)ipod|android|blackberry|phone|mobile|kindle|silk|fennec|tablet|webos|palm|windows ce|nokia|philips|samsung|sanyo|sony|panasonic|ericsson|alcatel|series60|series40|opera mini|opera mobi|au-mic|audiovox|avantgo|blazer|danger|docomo|epoc|ericy|i-mode|ipaq|midp-|mot-|netfront|nitro|pocket|portalmmm|rover|sie-|symbian|cldc-|j2me|up\.browser|up\.link|vodafone|wap1\.|wap2\.") {
-		hash_data("mobile");
-	}
+    # General User-Agent list (anything that remotely looks like a mobile device)
+    if (req.http.User-Agent ~ "(?i)ipod|android|blackberry|phone|mobile|kindle|silk|fennec|tablet|webos|palm|windows ce|nokia|philips|samsung|sanyo|sony|panasonic|ericsson|alcatel|series60|series40|opera mini|opera mobi|au-mic|audiovox|avantgo|blazer|danger|docomo|epoc|ericy|i-mode|ipaq|midp-|mot-|netfront|nitro|pocket|portalmmm|rover|sie-|symbian|cldc-|j2me|up\.browser|up\.link|vodafone|wap1\.|wap2\.") {
+        hash_data("mobile");
+    }
 }
 

--- a/varnish-conf/lib/mobile_pass.vcl
+++ b/varnish-conf/lib/mobile_pass.vcl
@@ -6,17 +6,17 @@
 # Jetpack mobile plugin.
 
 sub vcl_recv {
-	# Rules specifically for the Jetpack Mobile module
-	if (req.url ~ "\?(.*&)?(ak_action|app-download)=") {
-		return(pass);
-	}
-	if (req.http.Cookie ~ "(^|;\s*)akm_mobile=") {
-		return(pass);
-	}
+    # Rules specifically for the Jetpack Mobile module
+    if (req.url ~ "\?(.*&)?(ak_action|app-download)=") {
+        return(pass);
+    }
+    if (req.http.Cookie ~ "(^|;\s*)akm_mobile=") {
+        return(pass);
+    }
 
-	# General User-Agent blacklist (anything that remotely looks like a mobile device)
-	if (req.http.User-Agent ~ "(?i)ipod|android|blackberry|phone|mobile|kindle|silk|fennec|tablet|webos|palm|windows ce|nokia|philips|samsung|sanyo|sony|panasonic|ericsson|alcatel|series60|series40|opera mini|opera mobi|au-mic|audiovox|avantgo|blazer|danger|docomo|epoc|ericy|i-mode|ipaq|midp-|mot-|netfront|nitro|pocket|portalmmm|rover|sie-|symbian|cldc-|j2me|up\.browser|up\.link|vodafone|wap1\.|wap2\.") {
-		return(pass);
-	}
+    # General User-Agent blacklist (anything that remotely looks like a mobile device)
+    if (req.http.User-Agent ~ "(?i)ipod|android|blackberry|phone|mobile|kindle|silk|fennec|tablet|webos|palm|windows ce|nokia|philips|samsung|sanyo|sony|panasonic|ericsson|alcatel|series60|series40|opera mini|opera mobi|au-mic|audiovox|avantgo|blazer|danger|docomo|epoc|ericy|i-mode|ipaq|midp-|mot-|netfront|nitro|pocket|portalmmm|rover|sie-|symbian|cldc-|j2me|up\.browser|up\.link|vodafone|wap1\.|wap2\.") {
+        return(pass);
+    }
 }
 

comments