-
Notifications
You must be signed in to change notification settings - Fork 2
/
Caddyfile
30 lines (26 loc) · 1.13 KB
/
Caddyfile
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
:{$PORT} {
header {
Access-Control-Allow-Origin "*"
Access-Control-Request-Method "GET"
Access-Control-Request-Headers "Authorization, Content-Type, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since, Accept-Encoding, X-Requested-With, User-Agent"
}
encode zstd gzip
root * {$ROOT_DIR}
file_server
redir /references/cli/mondoo_agents /references/cli/mondoo_client
redir /references/cli/mondoo_agents/ /references/cli/mondoo_client
redir /references/cli/mondoo_agents_generate-credentials* /references/cli/mondoo_client_generate-credentials
redir /references/cli/mondoo_agents_generate-token* /references/cli/mondoo_client_generate-token
redir /getstarted/introduction_mql_shell* /platform/console/policies/policy-as-code
redir /policies/overview* /platform/console/policies/overview
redir /policies/* /platform/console/policies/overview
redir /installation/operating_systems/installation /cnspec/
redir /installation/operating_systems* /cnspec/cnspec-adv-install/overview
handle_errors {
@404 {
expression {http.error.status_code} == 404
}
rewrite @404 /404.html
file_server
}
}