aboutsummaryrefslogtreecommitdiff
path: root/www/videocache/files
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2009-05-10 22:25:34 +0000
committerMartin Wilke <miwi@FreeBSD.org>2009-05-10 22:25:34 +0000
commitee6b29827d2511dae2637e643ea267b0f2ef9569 (patch)
tree44f5bdfa5adb0488fab4f3f39e7b833e27a11872 /www/videocache/files
parent32b8b31484f60ac549019bdc3b329575be946f3e (diff)
downloadports-ee6b29827d2511dae2637e643ea267b0f2ef9569.tar.gz
ports-ee6b29827d2511dae2637e643ea267b0f2ef9569.zip
Notes
Diffstat (limited to 'www/videocache/files')
-rw-r--r--www/videocache/files/pkg-message.in3
-rw-r--r--www/videocache/files/squid.conf.example32
2 files changed, 35 insertions, 0 deletions
diff --git a/www/videocache/files/pkg-message.in b/www/videocache/files/pkg-message.in
new file mode 100644
index 000000000000..391fca09d838
--- /dev/null
+++ b/www/videocache/files/pkg-message.in
@@ -0,0 +1,3 @@
+See the following sample file to configure your ACL's on squid.conf:
+
+ %%EXAMPLESDIR%%/squid.conf
diff --git a/www/videocache/files/squid.conf.example b/www/videocache/files/squid.conf.example
new file mode 100644
index 000000000000..163ac52ed6e8
--- /dev/null
+++ b/www/videocache/files/squid.conf.example
@@ -0,0 +1,32 @@
+==============================================================================
+
+Add the following sample lines to your squid.conf:
+
+# --BEGIN-- videocache config for squid
+url_rewrite_program %%PREFIX%%/bin/python %%DATADIR%%/videocache/videocache.py
+url_rewrite_children 7
+acl videocache_allow_url url_regex -i \.youtube\.com\/get_video\?
+acl videocache_allow_url url_regex -i \.googlevideo\.com\/videoplayback \.googlevideo\.com\/videoplay \.googlevideo\.com\/get_video\?
+acl videocache_allow_url url_regex -i \.google\.com\/videoplayback \.google\.com\/videoplay \.google\.com\/get_video\?
+acl videocache_allow_url url_regex -i \.google\.[a-z][a-z]\/videoplayback \.google\.[a-z][a-z]\/videoplay \.google\.[a-z][a-z]\/get_video\?
+acl videocache_allow_url url_regex -i (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\/videoplayback\?
+acl videocache_allow_url url_regex -i (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\/videoplay\?
+acl videocache_allow_url url_regex -i (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\/get_video\?
+acl videocache_allow_url url_regex -i proxy[a-z0-9\-][a-z0-9][a-z0-9][a-z0-9]?\.dailymotion\.com\/
+acl videocache_allow_url url_regex -i vid\.akm\.dailymotion\.com\/
+acl videocache_allow_url url_regex -i [a-z0-9][0-9a-z][0-9a-z]?[0-9a-z]?[0-9a-z]?\.xtube\.com\/(.*)flv
+acl videocache_allow_url url_regex -i bitcast\.vimeo\.com\/vimeo\/videos\/
+acl videocache_allow_url url_regex -i va\.wrzuta\.pl\/wa[0-9][0-9][0-9][0-9]?
+acl videocache_allow_url url_regex -i \.files\.youporn\.com\/(.*)\/flv\/
+acl videocache_allow_url url_regex -i \.msn\.com\.edgesuite\.net\/(.*)\.flv
+acl videocache_allow_url url_regex -i media[a-z0-9]?[a-z0-9]?[a-z0-9]?\.tube8\.com\/ mobile[a-z0-9]?[a-z0-9]?[a-z0-9]?\.ta-z0-9]?[a-z0-9]?\.blip\.tv\/(.*)\.(flv|avi|mov|mp3|m4v|mp4|wmv|rm|ram)
+acl videocache_allow_url url_regex -i video\.break\.com\/(.*)\.(flv|mp4)
+acl videocache_allow_dom dstdomain .mccont.com dl.redtube.com .cdn.dailymotion.com
+acl videocache_deny_url url_regex -i http:\/\/[a-z][a-z]\.youtube\.com http:\/\/www\.youtube\.com
+url_rewrite_access deny videocache_deny_url
+url_rewrite_access allow videocache_allow_url
+url_rewrite_access allow videocache_allow_dom
+redirector_bypass on
+# --END-- videocache config for squid
+
+==============================================================================