Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fastly-3357660
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
fastly-3357660
Commits
a32d30ca
Unverified
Commit
a32d30ca
authored
4 years ago
by
Vladimir Vuksan
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request
#36
from daliborstojakovic/feature/updating-documentation-for-new-config
Updating documentation for new environment variables
parents
de394114
6f12daa4
Branches
3.2.x
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.txt
+29
-3
29 additions, 3 deletions
README.txt
with
29 additions
and
3 deletions
README.txt
+
29
−
3
View file @
a32d30ca
...
...
@@ -36,7 +36,7 @@ Module Features
---------------
1. Account Sign In. If you are already an authenticated Fastly user,
You can simply enter an API token and a list of service will show up in a
You can simply enter an API token and a list of service will show up in a
drop down.
2. Automated Purging. Content will be automatically purged when updated/created.
...
...
@@ -52,7 +52,7 @@ How To Install The Module?
3. Enter your Fastly API token in the settings form and then select your service.
4. *IMPORTANT* Make sure you click Upload Fastly VCL snippets. Although this step is not
4. *IMPORTANT* Make sure you click Upload Fastly VCL snippets. Although this step is not
required it improves caching and enables features such as serve stale on errors etc.
If you find a problem, incorrect comment, obsolete or improper code or such,
...
...
@@ -66,7 +66,33 @@ See https://docs.fastly.com/guides/securing-communications for a list showing
different options available. If you are using TLS, you should add the following
lines of code to your settings.php
// Enable Fas
l
ty TLS connections.
// Enable Fast
l
y TLS connections.
if (!empty($_SERVER['HTTP_FASTLY_SSL'])) {
$_SERVER['HTTPS'] = 'on';
}
FASTLY API TOKEN
________________
You can change it in settings form or you can use environment variable FASTLY_API_TOKEN to set it also.
FASTLY SERVICE ID
_________________
A Service represents the configuration for your website to be served through Fastly. You can override this with
FASTLY_API_SERVICE environment variable
FASTLY SITE ID
______________
Site identifier which is being prepended to cache tags. You can change it in settings form. Use this if you have
multiple sites in the same service in Fastly. Note: You can use the environment variable FASTLY_SITE_ID
to set this also. If nothing is set in either config or environment variable then one will be randomly generated for
you.
FASTLY CACHE TAG HASH LENGTH
____________________________
For sites with more content, it may be necessary to increase the length of the hashed cache tags that are used for the
<code>Surrogate-Key</code> header and when purging content. You can change it in settings form.
This is due to hash collisions (https://en.wikipedia.org/wiki/Hash_table#Collision_resolution) which will result in
excessive purging of content if the key length is too short.
Note that this number should not be as large as the total number of cache tags in your site, just high enough to
avoid most collisions during purging. Also you can override this with environment variable FASTLY_CACHE_TAG_HASH_LENGTH.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment