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
Kasra Jamshidi
slapos
Commits
4b915f9b
Commit
4b915f9b
authored
May 03, 2013
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
squid: Squid use hardcoded domain
parent
13b4dee5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
slapos/recipe/squid/__init__.py
slapos/recipe/squid/__init__.py
+4
-0
slapos/recipe/squid/template/squid.conf.in
slapos/recipe/squid/template/squid.conf.in
+1
-1
software/apache-frontend/instance.cfg
software/apache-frontend/instance.cfg
+2
-0
No files found.
slapos/recipe/squid/__init__.py
View file @
4b915f9b
...
@@ -40,6 +40,9 @@ class Recipe(GenericBaseRecipe):
...
@@ -40,6 +40,9 @@ class Recipe(GenericBaseRecipe):
cache-path -- location of the cache directory
cache-path -- location of the cache directory
XXXX No good, specific...
domain -- domain we want to cache
ip -- ip of the squid server
ip -- ip of the squid server
port -- port of the squid server
port -- port of the squid server
...
@@ -66,6 +69,7 @@ class Recipe(GenericBaseRecipe):
...
@@ -66,6 +69,7 @@ class Recipe(GenericBaseRecipe):
access_log_path
=
self
.
options
[
'access-log-path'
],
access_log_path
=
self
.
options
[
'access-log-path'
],
cache_log_path
=
self
.
options
[
'cache-log-path'
],
cache_log_path
=
self
.
options
[
'cache-log-path'
],
pid_filename_path
=
self
.
options
[
'pid-filename-path'
],
pid_filename_path
=
self
.
options
[
'pid-filename-path'
],
domain
=
self
.
options
[
'domain'
],
)
)
template_filename
=
self
.
getTemplateFilename
(
'squid.conf.in'
)
template_filename
=
self
.
getTemplateFilename
(
'squid.conf.in'
)
...
...
slapos/recipe/squid/template/squid.conf.in
View file @
4b915f9b
...
@@ -8,7 +8,7 @@ http_port %(ip)s:%(port)s accel defaultsite=%(ip)s
...
@@ -8,7 +8,7 @@ http_port %(ip)s:%(port)s accel defaultsite=%(ip)s
cache_peer %(backend_ip)s parent %(backend_port)s 0 no-query originserver name=backend
cache_peer %(backend_ip)s parent %(backend_port)s 0 no-query originserver name=backend
acl our_sites dstdomain %(
ip
)s
acl our_sites dstdomain %(
domain
)s
http_access allow our_sites
http_access allow our_sites
cache_peer_access backend allow our_sites
cache_peer_access backend allow our_sites
cache_peer_access backend deny all
cache_peer_access backend deny all
...
...
software/apache-frontend/instance.cfg
View file @
4b915f9b
...
@@ -173,6 +173,7 @@ ip = $${squid-hardcoded:ip}
...
@@ -173,6 +173,7 @@ ip = $${squid-hardcoded:ip}
port = $${squid-hardcoded:port}
port = $${squid-hardcoded:port}
backend-ip = $${squid-hardcoded:backend-ip}
backend-ip = $${squid-hardcoded:backend-ip}
backend-port = $${squid-hardcoded:backend-port}
backend-port = $${squid-hardcoded:backend-port}
domain = $${squid-hardcoded:domain}
access-log-path = $${directory:log}/squid-access.log
access-log-path = $${directory:log}/squid-access.log
cache-log-path = $${directory:log}/squid-cache.log
cache-log-path = $${directory:log}/squid-cache.log
pid-filename-path = $${directory:run}/squid.pid
pid-filename-path = $${directory:run}/squid.pid
...
@@ -182,3 +183,4 @@ ip = 10.0.24.140
...
@@ -182,3 +183,4 @@ ip = 10.0.24.140
port = 26010
port = 26010
backend-ip = 10.0.24.140
backend-ip = 10.0.24.140
backend-port = 26011
backend-port = 26011
domain = softinst34784.bateau.org
\ No newline at end of file
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