Skip to content

Commit f595447

Browse files
committed
add
1 parent ea099ec commit f595447

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

tencentcloud/services/cos/resource_tc_cos_bucket.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,20 @@ resource "tencentcloud_cos_bucket" "bucket_with_static_website" {
236236
website {
237237
index_document = "index.html"
238238
error_document = "error.html"
239-
redirect_all_requests_to = "http"
239+
redirect_all_requests_to = "https"
240+
routing_rules {
241+
rules {
242+
condition_error_code = "404"
243+
redirect_protocol = "https"
244+
redirect_replace_key_prefix = "/test"
245+
}
246+
247+
rules {
248+
condition_prefix = "/test"
249+
redirect_protocol = "https"
250+
redirect_replace_key = "key"
251+
}
252+
}
240253
}
241254
}
242255

website/docs/r/cos_bucket.html.markdown

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,20 @@ resource "tencentcloud_cos_bucket" "bucket_with_static_website" {
247247
website {
248248
index_document = "index.html"
249249
error_document = "error.html"
250-
redirect_all_requests_to = "http"
250+
redirect_all_requests_to = "https"
251+
routing_rules {
252+
rules {
253+
condition_error_code = "404"
254+
redirect_protocol = "https"
255+
redirect_replace_key_prefix = "/test"
256+
}
257+
258+
rules {
259+
condition_prefix = "/test"
260+
redirect_protocol = "https"
261+
redirect_replace_key = "key"
262+
}
263+
}
251264
}
252265
}
253266

0 commit comments

Comments
 (0)