- Based on https://askubuntu.com/a/293029/286776
- Installation date: 15-09-2018
- Additional notes based on my own experience
- The process describes a completely fresh installation with a complete repartitioning, however it should work fine when Windows is already installed (eg. brand new machine with Windows preinstalled).
- The process was conducted on Dell's XPS 15 9570 (2018) with specs:
- CPU: i7-8750H
- Screen: 4K with Touch
- RAM: 16 GB (original) / 32 GB (manually upgraded)
- Drive: 512 GB (SK Hynix PC401)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
< HTTP/2 200 | |
< access-control-allow-methods: GET, PUT, POST, DELETE | |
< access-control-allow-origin: www.example.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Lambda function to set cache control public header in case of missing cache control header | |
exports.handler = (event, context, callback) => { | |
const { response } = event.Records[0].cf; | |
const { headers } = response; | |
const headerCacheControl = 'Cache-Control'; | |
const defaultTimeToLive = 60 * 60 * 24 * 14; // 14 days | |
if (response.status === '200') { | |
if (!headers[headerCacheControl.toLowerCase()]) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ { | |
"Effect": "Allow", | |
"Principal": { | |
"Service": ["lambda.amazonaws.com", "edgelambda.amazonaws.com" ] | |
}, | |
"Action": "sts:AssumeRole" | |
} ] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ { | |
"Action": ["logs:*"], | |
"Effect": "Allow", | |
"Resource": "*" | |
} ] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service: LambdaAtEdge | |
provider: | |
name: aws | |
runtime: nodejs8.10 | |
region: us-east-1 | |
resources: | |
Resources: | |
LambdaAtEdgeRole: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/confd/templates/dotenv.tmpl | |
PASSWORD={{getv "/client-api/database/password"}} | |
USER={{getv "/client-api/database/user"}} | |
MAPS_API_KEY={{getv "/client-api/maps/api/key"}} |