forked from overhacked/docker-reposado
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreposado.conf
67 lines (54 loc) · 2.59 KB
/
reposado.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# webapp.conf:
server {
listen REPOSADO_PORT;
server_name reposado;
root /reposado/html;
# 10.4.x - Tiger
if ( $http_user_agent ~ "Darwin/8" ){
rewrite ^/index(.*)\.sucatalog$ /content/catalogs/index$1.sucatalog last;
}
# 10.5.x - Leopard
if ( $http_user_agent ~ "Darwin/9" ){
rewrite ^/index(.*)\.sucatalog$ /content/catalogs/others/index-leopard.merged-1$1.sucatalog last;
}
# 10.6.x - Snow Leopard
if ( $http_user_agent ~ "Darwin/10" ){
rewrite ^/index(.*)\.sucatalog$ /content/catalogs/others/index-leopard-snowleopard.merged-1$1.sucatalog last;
}
# 10.7.x - Lion
if ( $http_user_agent ~ "Darwin/11" ){
rewrite ^/index(.*)\.sucatalog$ /content/catalogs/others/index-lion-snowleopard-leopard.merged-1$1.sucatalog last;
}
# 10.8.x - Mountain Lion
if ( $http_user_agent ~ "Darwin/12" ){
rewrite ^/index(.*)\.sucatalog$ /content/catalogs/others/index-mountainlion-lion-snowleopard-leopard.merged-1$1.sucatalog last;
}
# 10.9.x - Mavericks
if ( $http_user_agent ~ "Darwin/13" ){
rewrite ^/index(.*)\.sucatalog$ /content/catalogs/others/index-10.9-mountainlion-lion-snowleopard-leopard.merged-1$1.sucatalog last;
}
# 10.10.x - Yosemite
if ( $http_user_agent ~ "Darwin/14" ){
rewrite ^/index(.*)\.sucatalog$ /content/catalogs/others/index-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1$1.sucatalog last;
}
# 10.11.x - El Capitan
if ( $http_user_agent ~ "Darwin/15" ){
rewrite ^/index(.*)\.sucatalog$ /content/catalogs/others/index-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1$1.sucatalog last;
}
# 10.12.x - Sierra
if ( $http_user_agent ~ "Darwin/16" ){
rewrite ^/index(.*)\.sucatalog$ /content/catalogs/others/index-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1$1.sucatalog last;
}
# 10.13.x - High Sierra
if ( $http_user_agent ~ "Darwin/17" ){
rewrite ^/index(.*)\.sucatalog$ /content/catalogs/others/index-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1$1.sucatalog last;
}
# 10.14.x - Mojave
if ( $http_user_agent ~ "Darwin/18" ){
rewrite ^/index(.*)\.sucatalog$ /content/catalogs/others/index-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1$1.sucatalog last;
}
# 10.15.x - Catalina
if ( $http_user_agent ~ "Darwin/19" ){
rewrite ^/index(.*)\.sucatalog$ /content/catalogs/others/index-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1$1.sucatalog last;
}
}