You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 41b91f3
Browse filesBrowse the repository at this point in the historyBrowse files
**Note:** For an AWS S3 Bucket, the Backend address is
123
+
-> **Note:** For an AWS S3 Bucket, the Backend address is
122
124
`<domain>.s3-website-<region>.amazonaws.com`. The `default_host` attribute
123
125
should be set to `<bucket_name>.s3-website-<region>.amazonaws.com`. See the
124
126
Fastly documentation on [Amazon S3][fastly-s3].
@@ -127,164 +129,159 @@ Fastly documentation on [Amazon S3][fastly-s3].
127
129
128
130
The following arguments are supported:
129
131
130
-
*`name` - (Required) The unique name for the Service to create
132
+
*`name` - (Required) The unique name for the Service to create.
131
133
*`domain` - (Required) A set of Domain names to serve as entry points for your
132
-
Service. Defined below
134
+
Service. Defined below.
133
135
*`backend` - (Required) A set of Backends to service requests from your Domains.
134
-
Defined below
136
+
Defined below.
135
137
*`condition` - (Optional) A set of conditions to add logic to any basic
136
-
configuration object in this service. Defined below
138
+
configuration object in this service. Defined below.
137
139
*`cache_setting` - (Optional) A set of Cache Settings, allowing you to override
138
140
when an item is not to be cached based on an above `condition`. Defined below
139
141
*`gzip` - (Required) A set of gzip rules to control automatic gzipping of
140
-
content. Defined below
142
+
content. Defined below.
141
143
*`header` - (Optional) A set of Headers to manipulate for each request. Defined
142
-
below
143
-
*`default_host` - (Optional) The default hostname
144
-
*`default_ttl` - (Optional) The default Time-to-live (TTL) for requests
144
+
below.
145
+
*`default_host` - (Optional) The default hostname.
146
+
*`default_ttl` - (Optional) The default Time-to-live (TTL) for
147
+
requests.
145
148
*`force_destroy` - (Optional) Services that are active cannot be destroyed. In
146
149
order to destroy the Service, set `force_destroy` to `true`. Default `false`.
147
150
*`request_setting` - (Optional) A set of Request modifiers. Defined below
148
151
*`s3logging` - (Optional) A set of S3 Buckets to send streaming logs too.
149
-
Defined below
150
-
*`vcl` - (Optional) A set of custom VCL configuration blocks. Note that the
152
+
Defined below.
153
+
*`vcl` - (Optional) A set of custom VCL configuration blocks. The
151
154
ability to upload custom VCL code is not enabled by default for new Fastly
152
155
accounts (see the [Fastly documentation](https://docs.fastly.com/guides/vcl/uploading-custom-vcl) for details).
153
156
154
-
155
157
The `domain` block supports:
156
158
157
-
*`name` - (Required) The domain that this Service will respond to
158
-
*`comment` - (Optional) An optional comment about the Domain
159
+
*`name` - (Required) The domain to which this Service will respond.
160
+
*`comment` - (Optional) An optional comment about the Domain.
159
161
160
162
The `backend` block supports:
161
163
162
-
*`name` - (Required, string) Name for this Backend. Must be unique to this Service
163
-
*`address` - (Required, string) An IPv4, hostname, or IPv6 address for the Backend
164
-
*`auto_loadbalance` - (Optional, boolean) Denote if this Backend should be
164
+
*`name` - (Required, string) Name for this Backend. Must be unique to this Service.
165
+
*`address` - (Required, string) An IPv4, hostname, or IPv6 address for the Backend.
166
+
*`auto_loadbalance` - (Optional, boolean) Denotes if this Backend should be
165
167
included in the pool of backends that requests are load balanced against.
166
-
Default `true`
167
-
*`between_bytes_timeout` - (Optional) How long to wait between bytes in milliseconds. Default `10000`
168
+
Default `true`.
169
+
*`between_bytes_timeout` - (Optional) How long to wait between bytes in milliseconds. Default `10000`.
168
170
*`connect_timeout` - (Optional) How long to wait for a timeout in milliseconds.
169
171
Default `1000`
170
-
*`error_threshold` - (Optional) Number of errors to allow before the Backend is marked as down. Default `0`
171
-
*`first_byte_timeout` - (Optional) How long to wait for the first bytes in milliseconds. Default `15000`
172
+
*`error_threshold` - (Optional) Number of errors to allow before the Backend is marked as down. Default `0`.
173
+
*`first_byte_timeout` - (Optional) How long to wait for the first bytes in milliseconds. Default `15000`.
172
174
*`max_conn` - (Optional) Maximum number of connections for this Backend.
173
-
Default `200`
174
-
*`port` - (Optional) The port number Backend responds on. Default `80`
175
-
*`ssl_check_cert` - (Optional) Be strict on checking SSL certs. Default `true`
176
-
*`weight` - (Optional) The [portion of traffic](https://docs.fastly.com/guides/performance-tuning/load-balancing-configuration.html#how-weight-affects-load-balancing) to send to this Backend. Each Backend receives `weight / total` of the traffic. Default `100`
175
+
Default `200`.
176
+
*`port` - (Optional) The port number on which the Backend responds. Default `80`.
177
+
*`ssl_check_cert` - (Optional) Be strict about checking SSL certs. Default `true`.
178
+
*`weight` - (Optional) The [portion of traffic](https://docs.fastly.com/guides/performance-tuning/load-balancing-configuration.html#how-weight-affects-load-balancing) to send to this Backend. Each Backend receives `weight / total` of the traffic. Default `100`.
177
179
178
180
The `condition` block supports allows you to add logic to any basic configuration
for more detailed information on using Conditions. The Condition `name` can be
182
184
used in the `request_condition`, `response_condition`, or
183
-
`cache_condition` attributes of other block settings
185
+
`cache_condition` attributes of other block settings.
184
186
185
-
*`name` - (Required) A unique name of the condition
186
-
*`statement` - (Required) The statement used to determine if the condition is met
187
+
*`name` - (Required) The unique name for the condition.
188
+
*`statement` - (Required) The statement used to determine if the condition is met.
187
189
*`priority` - (Required) A number used to determine the order in which multiple
188
-
conditions execute. Lower numbers execute first
189
-
*`type` - (Required) Type of the condition, either `REQUEST` (req), `RESPONSE`
190
-
(req, resp), or `CACHE` (req, beresp)
190
+
conditions execute. Lower numbers execute first.
191
+
*`type` - (Required) Type of condition, either `REQUEST` (req), `RESPONSE`
192
+
(req, resp), or `CACHE` (req, beresp).
191
193
192
194
The `cache_setting` block supports:
193
195
194
-
*`name` - (Required) A unique name to label this Cache Setting
196
+
*`name` - (Required) Unique name for this Cache Setting.
195
197
*`action` - (Required) One of `cache`, `pass`, or `restart`, as defined
196
-
on Fastly's documentation under ["Caching action descriptions"](https://docs.fastly.com/guides/performance-tuning/controlling-caching#caching-action-descriptions)
197
-
*`cache_condition` - (Required) Name of the condition used to test whether this settings object should be used.
198
-
This Condition must be of type `CACHE`
198
+
on Fastly's documentation under ["Caching action descriptions"](https://docs.fastly.com/guides/performance-tuning/controlling-caching#caching-action-descriptions).
199
+
*`cache_condition` - (Required) Name of the condition used to test whether this settings object should be used. This Condition must be of type `CACHE`.
199
200
*`stale_ttl` - (Optional) Max "Time To Live" for stale (unreachable) objects.
200
-
Default `300`
201
-
*`ttl` - (Optional) The "Time To Live" for the object
201
+
Default `300`.
202
+
*`ttl` - (Optional) The Time-To-Live (TTL) for the object.
202
203
203
204
The `gzip` block supports:
204
205
205
-
*`name` - (Required) A unique name
206
-
*`content_types` - (Optional) content-type for each type of content you wish to
207
-
have dynamically gzipped. Ex: `["text/html", "text/css"]`
206
+
*`name` - (Required) A unique name.
207
+
*`content_types` - (Optional) The content-type for each type of content you wish to
208
+
have dynamically gzip'ed. Example: `["text/html", "text/css"]`.
208
209
*`extensions` - (Optional) File extensions for each file type to dynamically
209
-
gzip. Ex: `["css", "js"]`
210
+
gzip. Example: `["css", "js"]`.
210
211
211
212
212
213
The `Header` block supports adding, removing, or modifying Request and Response
213
214
headers. See Fastly's documentation on
214
-
[Adding or modifying headers on HTTP requests and responses](https://docs.fastly.com/guides/basic-configuration/adding-or-modifying-headers-on-http-requests-and-responses#field-description-table) for more detailed information on any
215
-
of the properties below.
215
+
[Adding or modifying headers on HTTP requests and responses](https://docs.fastly.com/guides/basic-configuration/adding-or-modifying-headers-on-http-requests-and-responses#field-description-table) for more detailed information on any of the properties below.
216
216
217
-
*`name` - (Required) A unique name to refer to this header attribute
217
+
*`name` - (Required) Unique name for this header attribute.
218
218
*`action` - (Required) The Header manipulation action to take; must be one of
219
-
`set`, `append`, `delete`, `regex`, or `regex_repeat`
220
-
*`type` - (Required) The Request type to apply the selected Action on; must be one of `request`, `fetch`, `cache` or `response`
221
-
*`destination` - (Required) The name of the header that is going to be affected
222
-
by the Action
223
-
*`ignore_if_set` - (Optional) Do not add the header if it is already present.
224
-
(Only applies to `set` action.). Default `false`
225
-
*`source` - (Optional) Variable to be used as a source for the header content
226
-
(Does not apply to `delete` action.)
227
-
*`regex` - (Optional) Regular expression to use (Only applies to `regex` and `regex_repeat` actions.)
228
-
*`substitution` - (Optional) Value to substitute in place of regular expression. (Only applies to `regex` and `regex_repeat`.)
0 commit comments