mirror of
https://github.com/kubesphere/website.git
synced 2025-12-26 00:12:48 +00:00
43 lines
900 B
TOML
43 lines
900 B
TOML
[context.production.environment]
|
|
HUGO_VERSION = "0.126.2"
|
|
|
|
[context.deploy-preview.environment]
|
|
HUGO_VERSION = "0.126.2"
|
|
|
|
[[redirects]]
|
|
from = "/log/*"
|
|
to = "https://log.kubesphere.io/:splat"
|
|
status = 308
|
|
force = true
|
|
|
|
[[redirects]]
|
|
from = "/tr/forum/*"
|
|
to = "http://139.198.113.75:9900/tr/forum/:splat"
|
|
status = 200
|
|
force = true
|
|
|
|
[[redirects]]
|
|
from = "/forum/*"
|
|
to = "https://ask.kubesphere.io/forum/:splat"
|
|
status = 301
|
|
force = true
|
|
|
|
[[redirects]]
|
|
from = "/forum/"
|
|
to = "https://ask.kubesphere.io/forum/"
|
|
status = 301
|
|
force = true
|
|
|
|
[[redirects]]
|
|
from = "^(/zh)?/docs/(v3\\.3|v3\\.4|v4\\.1)(/.*)?$"
|
|
to = "/404.html"
|
|
status = 404
|
|
force = true
|
|
conditions = { Role = "all" }
|
|
|
|
# [[headers]]
|
|
# for = "^(/zh)?/docs/(v3\\.3|v3\\.4|v4\\.1)(/.*)?$"
|
|
# [headers.values]
|
|
# Cache-Control = "no-store, max-age=0"
|
|
# X-Robots-Tag = "noindex, nofollow"
|