Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 34 additions & 20 deletions docs/stackit_beta_cdn_distribution_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,31 +26,45 @@ stackit beta cdn distribution create [flags]
$ cat secret.txt | stackit beta cdn distribution create -y --project-id xxx \
--bucket --bucket-url https://bucket.example.com --bucket-credentials-access-key-id yyyy --bucket-password - --bucket-region EU \
--regions AF,EU

Create a CDN distribution with WAF and redirect configurations from JSON files
$ stackit beta cdn distribution create --http --http-origin-url https://example.com \
--regions EU --waf @./waf.json --redirects @./redirects.json
```

### Options

```
--blocked-countries strings Comma-separated list of ISO 3166-1 alpha-2 country codes to block (e.g., 'US,DE,FR')
--blocked-ips strings Comma-separated list of IPv4 addresses to block (e.g., '10.0.0.8,127.0.0.1')
--bucket[=true|false] Use Object Storage backend
--bucket-credentials-access-key-id string Access Key ID for Object Storage backend
--bucket-password secret Bucket-Password. Use @<file> to read from a file (example: @./secret.txt), or - to read from stdin (hidden input on a terminal). Literal values are not supported.
--bucket-region string Region for Object Storage backend
--bucket-url string Bucket URL for Object Storage backend
--default-cache-duration string ISO8601 duration string for default cache duration (e.g., 'PT1H30M' for 1 hour and 30 minutes)
-h, --help[=true|false] Help for "stackit beta cdn distribution create"
--http[=true|false] Use HTTP backend
--http-geofencing stringArray Geofencing rules for HTTP backend in the format 'https://example.com US,DE'. URL and countries have to be quoted. Repeatable.
--http-origin-request-headers strings Origin request headers for HTTP backend in the format 'HeaderName: HeaderValue', repeatable. WARNING: do not store sensitive values in the headers!
--http-origin-url string Origin URL for HTTP backend
--loki[=true|false] Enable Loki log sink for the CDN distribution
--loki-password secret Loki-Password. Use @<file> to read from a file (example: @./secret.txt), or - to read from stdin (hidden input on a terminal). Literal values are not supported.
--loki-push-url string Push URL for log sink
--loki-username string Username for log sink
--monthly-limit-bytes int Monthly limit in bytes for the CDN distribution
--optimizer[=true|false] Enable optimizer for the CDN distribution (paid feature).
--regions strings Regions in which content should be cached, multiple values accepted, (multiple of: [EU, US, AF, SA, ASIA]) (default [])
--blocked-countries strings Comma-separated list of ISO 3166-1 alpha-2 country codes to block (e.g., 'US,DE,FR')
--blocked-ips strings Comma-separated list of IPv4 addresses to block (e.g., '10.0.0.8,127.0.0.1')
--bucket[=true|false] Use Object Storage backend
--bucket-credentials-access-key-id string Access Key ID for Object Storage backend
--bucket-password secret Bucket-Password. Use @<file> to read from a file (example: @./secret.txt), or - to read from stdin (hidden input on a terminal). Literal values are not supported.
--bucket-region string Region for Object Storage backend
--bucket-url string Bucket URL for Object Storage backend
--cache-key-headers strings Comma-separated list of HTTP request header names that participate in the cache key
--cache-query-string-vary[=true|false] Vary the cache by the request query string
--cache-query-string-vary-parameters strings Comma-separated allowlist of query-string parameter names that participate in the cache key when query-string vary is enabled
--default-cache-duration string ISO8601 duration string for default cache duration (e.g., 'PT1H30M' for 1 hour and 30 minutes)
--forward-host-header[=true|false] Forward the 'Host' header to the origin
-h, --help[=true|false] Help for "stackit beta cdn distribution create"
--http[=true|false] Use HTTP backend
--http-geofencing stringArray Geofencing rules for HTTP backend in the format 'https://example.com US,DE'. URL and countries have to be quoted. Repeatable.
--http-origin-request-headers strings Origin request headers for HTTP backend in the format 'HeaderName: HeaderValue', repeatable. WARNING: do not store sensitive values in the headers!
--http-origin-url string Origin URL for HTTP backend
--labels stringToString Labels are key-value string pairs which can be attached to a distribution. E.g. '--labels key1=value1,key2=value2,...' (default [])
--loki[=true|false] Enable Loki log sink for the CDN distribution
--loki-password secret Loki-Password. Use @<file> to read from a file (example: @./secret.txt), or - to read from stdin (hidden input on a terminal). Literal values are not supported.
--loki-push-url string Push URL for log sink
--loki-username string Username for log sink
--monthly-limit-bytes int Monthly limit in bytes for the CDN distribution
--optimizer[=true|false] Enable optimizer for the CDN distribution (paid feature).
--redirects string Redirect configuration (JSON). Can be a string or a file path, if prefixed with "@" (example: @./redirects.json).
--regions strings Regions in which content should be cached, multiple values accepted, (multiple of: [EU, US, AF, SA, ASIA]) (default [])
--strip-response-cookies[=true|false] Prevent origin-level cookies from being forwarded to the end user
--tls-enable-1-0[=true|false] Allow connections using TLS 1.0 (discouraged for security reasons)
--tls-enable-1-1[=true|false] Allow connections using TLS 1.1 (discouraged for security reasons)
--waf string WAF configuration (JSON, requires "mode", "type", and "enabledRuleIds"). Can be a string or a file path, if prefixed with "@" (example: @./waf.json).
```

### Options inherited from parent commands
Expand Down
57 changes: 37 additions & 20 deletions docs/stackit_beta_cdn_distribution_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,43 @@ stackit beta cdn distribution update [flags]
### Options

```
--blocked-countries strings Comma-separated list of ISO 3166-1 alpha-2 country codes to block (e.g., 'US,DE,FR')
--blocked-ips strings Comma-separated list of IPv4 addresses to block (e.g., '10.0.0.8,127.0.0.1')
--bucket[=true|false] Use Object Storage backend
--bucket-credentials-access-key-id string Access Key ID for Object Storage backend
--bucket-password secret Bucket-Password. Use @<file> to read from a file (example: @./secret.txt), or - to read from stdin (hidden input on a terminal). Literal values are not supported.
--bucket-region string Region for Object Storage backend
--bucket-url string Bucket URL for Object Storage backend
--default-cache-duration string ISO8601 duration string for default cache duration (e.g., 'PT1H30M' for 1 hour and 30 minutes)
-h, --help[=true|false] Help for "stackit beta cdn distribution update"
--http[=true|false] Use HTTP backend
--http-geofencing stringArray Geofencing rules for HTTP backend in the format 'https://example.com US,DE'. URL and countries have to be quoted. Repeatable.
--http-origin-request-headers strings Origin request headers for HTTP backend in the format 'HeaderName: HeaderValue', repeatable. WARNING: do not store sensitive values in the headers!
--http-origin-url string Origin URL for HTTP backend
--loki[=true|false] Enable Loki log sink for the CDN distribution
--loki-password secret Loki-Password. Use @<file> to read from a file (example: @./secret.txt), or - to read from stdin (hidden input on a terminal). Literal values are not supported.
--loki-push-url string Push URL for log sink
--loki-username string Username for log sink
--monthly-limit-bytes int Monthly limit in bytes for the CDN distribution
--optimizer[=true|false] Enable optimizer for the CDN distribution (paid feature).
--regions strings Regions in which content should be cached, (multiple of: [EU, US, AF, SA, ASIA]) (default [])
--blocked-countries strings Comma-separated list of ISO 3166-1 alpha-2 country codes to block (e.g., 'US,DE,FR')
--blocked-ips strings Comma-separated list of IPv4 addresses to block (e.g., '10.0.0.8,127.0.0.1')
--bucket[=true|false] Use Object Storage backend
--bucket-credentials-access-key-id string Access Key ID for Object Storage backend
--bucket-password secret Bucket-Password. Use @<file> to read from a file (example: @./secret.txt), or - to read from stdin (hidden input on a terminal). Literal values are not supported.
--bucket-region string Region for Object Storage backend
--bucket-url string Bucket URL for Object Storage backend
--cache-key-headers strings Comma-separated list of HTTP request header names that participate in the cache key
--cache-query-string-vary[=true|false] Vary the cache by the request query string
--cache-query-string-vary-parameters strings Comma-separated allowlist of query-string parameter names that participate in the cache key when query-string vary is enabled
--default-cache-duration string ISO8601 duration string for default cache duration (e.g., 'PT1H30M' for 1 hour and 30 minutes)
--forward-host-header[=true|false] Forward the 'Host' header to the origin
-h, --help[=true|false] Help for "stackit beta cdn distribution update"
--http[=true|false] Use HTTP backend
--http-geofencing stringArray Geofencing rules for HTTP backend in the format 'https://example.com US,DE'. URL and countries have to be quoted. Repeatable.
--http-origin-request-headers strings Origin request headers for HTTP backend in the format 'HeaderName: HeaderValue', repeatable. WARNING: do not store sensitive values in the headers!
--http-origin-url string Origin URL for HTTP backend
--labels stringToString Labels are key-value string pairs which can be attached to a distribution. E.g. '--labels key1=value1,key2=value2,...' (default [])
--labels-to-remove strings Comma-separated list of label keys to remove
--loki[=true|false] Enable Loki log sink for the CDN distribution
--loki-password secret Loki-Password. Use @<file> to read from a file (example: @./secret.txt), or - to read from stdin (hidden input on a terminal). Literal values are not supported.
--loki-push-url string Push URL for log sink
--loki-username string Username for log sink
--monthly-limit-bytes int Monthly limit in bytes for the CDN distribution
--optimizer[=true|false] Enable optimizer for the CDN distribution (paid feature).
--redirects string Redirect configuration (JSON). Can be a string or a file path, if prefixed with "@" (example: @./redirects.json).
--regions strings Regions in which content should be cached, (multiple of: [EU, US, AF, SA, ASIA]) (default [])
--remove-cache-key-headers[=true|false] Clear the cache key headers list
--remove-cache-query-string-vary-parameters[=true|false] Clear the query-string vary parameters allowlist
--remove-default-cache-duration[=true|false] Unset the default cache duration
--remove-log-sink[=true|false] Remove the log sink configuration
--remove-monthly-limit-bytes[=true|false] Unset the monthly limit in bytes
--remove-redirects[=true|false] Remove all redirect rules
--strip-response-cookies[=true|false] Prevent origin-level cookies from being forwarded to the end user
--tls-enable-1-0[=true|false] Allow connections using TLS 1.0 (discouraged for security reasons)
--tls-enable-1-1[=true|false] Allow connections using TLS 1.1 (discouraged for security reasons)
--waf string WAF configuration patch (JSON). Can be a string or a file path, if prefixed with "@" (example: @./waf.json).
```

### Options inherited from parent commands
Expand Down
Loading
Loading