Skip to content

Commit

Permalink
Disable TLSv1.3 for upstream connections from squid on Ubuntu 20.04
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Jun 23, 2020
1 parent d07124b commit 8593050
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cookbooks/tilecache/templates/default/squid.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,21 @@ acl tile_caches src <%= address %>
# Primary Parent
<% if node[:squid][:version] < 4 -%>
cache_peer <%= node[:tilecache][:tile_parent] %> parent 443 0 no-query originserver name=osmtileAccel login=PASS connect-timeout=120 no-digest weight=1000 ssl ssldomain=render.openstreetmap.org
<% else -%>
<% elif node[:lsb][:release].to_f < 20.04 -%>
cache_peer <%= node[:tilecache][:tile_parent] %> parent 443 0 no-query originserver name=osmtileAccel login=PASS connect-timeout=120 no-digest weight=1000 tls tlsdomain=render.openstreetmap.org
<% else -%>
cache_peer <%= node[:tilecache][:tile_parent] %> parent 443 0 no-query originserver name=osmtileAccel login=PASS connect-timeout=120 no-digest weight=1000 tls tlsdomain=render.openstreetmap.org tls-options=NORMAL:-VERS-TLS1.3
<% end -%>
cache_peer_access osmtileAccel allow osmtile_sites

# Backup Parents
<% @renders.each do |renders| -%>
<% if node[:squid][:version] < 4 -%>
cache_peer <%= renders[:hostname] %>.render.openstreetmap.org parent 443 0 no-query originserver name=osmtileAccelBackup<%= renders[:hostname] %> login=PASS connect-timeout=60 no-digest weight=10 ssl ssldomain=render.openstreetmap.org
<% else -%>
<% elif node[:lsb][:release].to_f < 20.04 -%>
cache_peer <%= renders[:hostname] %>.render.openstreetmap.org parent 443 0 no-query originserver name=osmtileAccelBackup<%= renders[:hostname] %> login=PASS connect-timeout=60 no-digest weight=10 tls tlsdomain=render.openstreetmap.org
<% else -%>
cache_peer <%= renders[:hostname] %>.render.openstreetmap.org parent 443 0 no-query originserver name=osmtileAccelBackup<%= renders[:hostname] %> login=PASS connect-timeout=60 no-digest weight=10 tls tlsdomain=render.openstreetmap.org tls-options=NORMAL:-VERS-TLS1.3
<% end -%>
cache_peer_access osmtileAccelBackup<%= renders[:hostname] %> allow osmtile_sites
<% end -%>
Expand Down

0 comments on commit 8593050

Please sign in to comment.