@@ -10,40 +10,38 @@ You can use Fastly to proxy your Plausible Analytics requests. Here's the step-b
10
10
11
11
First, set up a Plausible backend:
12
12
13
- * Go to your Fastly service configuration
14
- * Click on "** Origins** " or "** Hosts** "
15
- * Click "** Create a host** "
13
+ 1 . Go to your Fastly service configuration
14
+ 2 . Click on "** Origins** " or "** Hosts** "
15
+ 3 . Click "** Create a host** "
16
+ 4 . Fill in:
16
17
17
- * Fill in:
18
+ * Name: ` Plausible `
19
+ * Address: ` plausible.io `
20
+ * Port: ` 443 `
21
+ * Enable SSL: ` Checked `
22
+ * Verify certificate: ` Checked `
23
+ * SNI hostname: ` plausible.io `
18
24
19
- - Name: ` Plausible `
20
- - Address: ` plausible.io `
21
- - Port: ` 443 `
22
- - Enable SSL: ` Checked `
23
- - Verify certificate: ` Checked `
24
- - SNI hostname: ` plausible.io `
25
+ 5 . Set the timeouts:
25
26
26
- * Set the timeouts:
27
+ * First byte timeout: ` 15000 ` (15 seconds)
28
+ * Between bytes timeout: ` 10000 ` (10 seconds)
27
29
28
- - First byte timeout: ` 15000 ` (15 seconds)
29
- - Between bytes timeout: ` 10000 ` (10 seconds)
30
-
31
- * Save
30
+ 6 . Save
32
31
33
32
## Step 2: Create VCL Snippet
34
33
35
34
Snippet 1: Plausible Request Routing (` vcl_recv ` )
36
35
37
- * Go to "** VCL Snippets** "
38
- * Click "** Create snippet** "
39
-
40
- * Fill in:
36
+ 1 . Go to "** VCL Snippets** "
37
+ 2 . Click "** Create snippet** "
38
+ 3 . Fill in:
41
39
42
- - Name: ` Plausible Request Routing `
43
- - Type: ` recv (vcl_recv) `
44
- - Priority: ` 100 ` (or any number that ensures this runs before your other recv snippets)
40
+ * Name: ` Plausible Request Routing `
41
+ * Type: ` recv (vcl_recv) `
42
+ * Priority: ` 100 ` (or any number that ensures this runs before your other recv snippets)
45
43
46
- * Add this VCL (Varnish Configuration Language):
44
+ 4 . Add this VCL (Varnish Configuration Language):
47
45
48
46
```
49
47
vcl
@@ -63,7 +61,7 @@ return(pass);
63
61
}
64
62
```
65
63
66
- * Save
64
+ 5 . Save
67
65
68
66
## Step 3: Integrate a new snippet into your site header
69
67
0 commit comments