Skip to content

Commit 7d59cb4

Browse files
authored
Duplicate cache items prevention (boostorg#1955) (boostorg#1970)
1 parent df33091 commit 7d59cb4

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

kube/boost/templates/configmap-nginx.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,16 @@ data:
138138
location = /build/ { return 301 /tools/build/; }
139139
location = /more/lib_guide.htm { return 301 /doc/contributor-guide/index.html; }
140140
141-
# Generalized rules for simple libs patterns,
142-
# TODO: needs matching development if combining is to be worked back into redirect generation branch or
141+
# redirect from docs urls where the version is prefixed with 'boost_'
142+
location ~ ^(/doc/libs/)boost_([0-9_]+)(/\\S+) { return 301 $1$2$3; }
143+
144+
# Generalized rules for simple libs patterns,
145+
# TODO: needs matching development if combining is to be worked back into redirect generation branch or
143146
# adding to the exclusion list if kept here as an unreplaced block
144147
location ~ ^/doc/libs/(\\d+)_(\\d+)_(\\d+)/libs/([^/]+)/(example|src|test)$ { return 301 https://github.com/boostorg/$4/tree/boost-$1.$2.$3/$5; }
145148
location ~ ^/doc/libs/([^/]+)/libs/([^/]+)/(example|src|test)$ { return 301 https://github.com/boostorg/$2/tree/{{.Values.boostLatestRelease}}/$3; }
146149
147-
# the following block of locations are from the nginx redirect configuration script and
150+
# the following block of locations are from the nginx redirect configuration script and
148151
# should be replaced with the newly generated block as a whole
149152
# TODO: the version/unversioned pairing needs matching development if worked back into redirect generation branch
150153
@@ -190,7 +193,7 @@ data:
190193
location ~ ^/doc/libs/([^/]+)/tools/boostbook$ { return 301 https://github.com/boostorg/boostbook/tree/{{.Values.boostLatestRelease}}; }
191194
location ~ ^/doc/libs/(\d+)_(\d+)_(\d+)/tools/build/v2/example/customization$ { return 301 https://github.com/boostorg/build/tree/boost-$1.$2.$3/v2/example/customization; }
192195
location ~ ^/doc/libs/([^/]+)/tools/build/v2/example/customization$ { return 301 https://github.com/boostorg/build/tree/{{.Values.boostLatestRelease}}/v2/example/customization; }
193-
196+
194197
# block end
195198
196199
include /etc/nginx/mime.types;

0 commit comments

Comments
 (0)