Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaohe Cao
slapos
Commits
79860414
Commit
79860414
authored
Apr 17, 2012
by
Tatuya Kamada
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add 3.0.x version into varnish component.
Make varnish recipe use 3.0.x version varnish.
parent
fc037c53
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
14 deletions
+19
-14
component/varnish/buildout.cfg
component/varnish/buildout.cfg
+6
-1
slapos/recipe/generic_varnish/template/default.vcl.in
slapos/recipe/generic_varnish/template/default.vcl.in
+11
-11
software/erp5/software.cfg
software/erp5/software.cfg
+1
-1
stack/erp5.cfg
stack/erp5.cfg
+1
-1
No files found.
component/varnish/buildout.cfg
View file @
79860414
...
...
@@ -5,7 +5,7 @@
parts =
varnish
varnish-2.1
varnish-3.0
extends =
../ncurses/buildout.cfg
../pcre/buildout.cfg
...
...
@@ -35,3 +35,8 @@ environment =
PKG_CONFIG_PATH=${pcre:location}/lib/pkgconfig
CPPFLAGS=-I${ncurses:location}/include
LDFLAGS=-L${ncurses:location}/lib -Wl,-rpath=${ncurses:location}/lib
[varnish-3.0]
<= varnish-2.1
url = http://repo.varnish-cache.org/source/varnish-3.0.2.tar.gz
md5sum = c8eae0aabbe66b6daabdf3a1f58cd47a
slapos/recipe/generic_varnish/template/default.vcl.in
View file @
79860414
...
...
@@ -36,11 +36,11 @@ sub vcl_recv {
req.request != "PURGE" &&
req.request != "DELETE") {
/* Non-RFC2616 or CONNECT which is weird. */
pipe
;
return(pipe)
;
}
if (req.request != "GET" && req.request != "HEAD" && req.request != "PURGE") {
/* We only deal with GET and HEAD by default */
pass
;
return(pass)
;
}
remove req.http.Cookie;
remove req.http.Set-Cookie;
...
...
@@ -67,12 +67,12 @@ sub vcl_recv {
# unset req.http.x;
#}
set req.grace = 30d;
lookup
;
return(lookup)
;
}
sub vcl_hash {
set req.hash += req.url
;
hash
;
hash_data(req.url)
;
return(hash)
;
}
sub vcl_hit {
...
...
@@ -90,21 +90,21 @@ sub vcl_hit {
remove req.http.Accept-Language;
remove req.http.Accept-Encoding;
remove req.http.Cookie;
deliver
;
return(deliver)
;
}
sub vcl_miss {
fetch
;
return(fetch)
;
}
sub vcl_fetch {
/* Never send request to backend even if client ask refreshed content */
if (
obj.cacheable
) {
if (
beresp.ttl > 0s
) {
/* Setup grace period for 30days for all cacheable contents */
#set req.grace = 30d;
set
obj
.grace = 30d;
set
beresp
.grace = 30d;
}
deliver
;
return(deliver)
;
}
...
...
@@ -120,5 +120,5 @@ sub vcl_deliver {
# set resp.http.X-Hash = "No hash";
#}
deliver
;
return(deliver)
;
}
software/erp5/software.cfg
View file @
79860414
...
...
@@ -222,7 +222,7 @@ extra-context =
key dcron_location dcron:location
key gzip_location gzip:location
key logrotate_location logrotate:location
key varnish_location varnish:location
key varnish_location varnish
-3.0
:location
key wget_location wget:location
[networkcache]
...
...
stack/erp5.cfg
View file @
79860414
...
...
@@ -93,7 +93,7 @@ parts =
graphviz
memcached
haproxy
varnish-
2.1
varnish-
3.0
stunnel
w3m
poppler
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment