Skip to content

Instantly share code, notes, and snippets.

@jwerre
Last active May 27, 2021 22:09
Show Gist options
  • Select an option

  • Save jwerre/b2a2704bb86d4e4fbd95a49ebc5c7965 to your computer and use it in GitHub Desktop.

Select an option

Save jwerre/b2a2704bb86d4e4fbd95a49ebc5c7965 to your computer and use it in GitHub Desktop.

Revisions

  1. jwerre revised this gist May 27, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion origin-request-event.json
    Original file line number Diff line number Diff line change
    @@ -46,7 +46,7 @@
    "origin": {
    "custom": {
    "customHeaders": {},
    "domainName": "example.org",
    "domainName": "example.com.s3.amazonaws.com",
    "keepaliveTimeout": 5,
    "path": "",
    "port": 443,
  2. jwerre revised this gist May 26, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion origin-request-event.json
    Original file line number Diff line number Diff line change
    @@ -32,7 +32,7 @@
    "host": [
    {
    "key": "Host",
    "value": "example.org"
    "value": "example.com.s3.amazonaws.com"
    }
    ],
    "cache-control": [
  3. jwerre renamed this gist May 25, 2021. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. jwerre created this gist May 25, 2021.
    68 changes: 68 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,68 @@
    {
    "Records": [
    {
    "cf": {
    "config": {
    "distributionDomainName": "d111111abcdef8.cloudfront.net",
    "distributionId": "EDFDVBD6EXAMPLE",
    "eventType": "origin-request",
    "requestId": "4TyzHTaYWb1GX1qTfsHhEqV6HUDd_BzoBZnwfnvQc_1oF26ClkoUSEQ=="
    },
    "request": {
    "clientIp": "203.0.113.178",
    "headers": {
    "x-forwarded-for": [
    {
    "key": "X-Forwarded-For",
    "value": "203.0.113.178"
    }
    ],
    "user-agent": [
    {
    "key": "User-Agent",
    "value": "Amazon CloudFront"
    }
    ],
    "via": [
    {
    "key": "Via",
    "value": "2.0 2afae0d44e2540f472c0635ab62c232b.cloudfront.net (CloudFront)"
    }
    ],
    "host": [
    {
    "key": "Host",
    "value": "example.org"
    }
    ],
    "cache-control": [
    {
    "key": "Cache-Control",
    "value": "no-cache, cf-no-cache"
    }
    ]
    },
    "method": "GET",
    "origin": {
    "custom": {
    "customHeaders": {},
    "domainName": "example.org",
    "keepaliveTimeout": 5,
    "path": "",
    "port": 443,
    "protocol": "https",
    "readTimeout": 30,
    "sslProtocols": [
    "TLSv1",
    "TLSv1.1",
    "TLSv1.2"
    ]
    }
    },
    "querystring": "",
    "uri": "/"
    }
    }
    }
    ]
    }