Skip to content

Commit cdf2a98

Browse files
committed
Full text search and usual misc.
1 parent c65dbea commit cdf2a98

10 files changed

+855
-21
lines changed
+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
2+
If you are building `example.com` and want assets served from `assets.example.com` then:
3+
4+
1. Create an s3 bucket named `assets.example.com` - the bucket name **must** match the fully qualified domain name of the assets domain. Note that **you do not need to enable _Website hosting_ on the S3 bucket**.
5+
1. Add an S3 bucket policy which allows Cloudflare IP addresses to read objects from the bucket without authentication. The IP addresses in the example below are taken from https://www.cloudflare.com/ips/ . Don't forget you need to put your bucket name in the example below:
6+
```js
7+
// The IP addresses here are taken from https://www.cloudflare.com/ips/
8+
{
9+
"Version": "2012-10-17",
10+
"Statement": [
11+
{
12+
"Sid": "PublicReadGetObject",
13+
"Effect": "Allow",
14+
"Principal": "*",
15+
"Action": "s3:GetObject",
16+
"Resource": "arn:aws:s3:::TODO_PUT_YOUR_BUCKET_NAME_HERE/*",
17+
"Condition": {
18+
"IpAddress": {
19+
"aws:SourceIp": [
20+
"103.21.244.0/22",
21+
"103.22.200.0/22",
22+
"103.31.4.0/22",
23+
"104.16.0.0/12",
24+
"108.162.192.0/18",
25+
"131.0.72.0/22",
26+
"141.101.64.0/18",
27+
"162.158.0.0/15",
28+
"172.64.0.0/13",
29+
"173.245.48.0/20",
30+
"188.114.96.0/20",
31+
"190.93.240.0/20",
32+
"197.234.240.0/22",
33+
"198.41.128.0/17",
34+
"2400:cb00::/32",
35+
"2405:8100::/32",
36+
"2405:b500::/32",
37+
"2606:4700::/32",
38+
"2803:f800::/32",
39+
"2a06:98c0::/29",
40+
"2c0f:f248::/32"
41+
]
42+
}
43+
}
44+
}
45+
]
46+
}
47+
```
48+
1. In cloudflare setup a CNAME from your assets subdomain to the domain of the S3 bucket e.g.
49+
```
50+
assets.example.com CNAME assets.example.com.s3.ap-southeast-2.amazonaws.com
51+
```
52+
1. Make sure that you have enabled proxying on the CNAME you just created i.e. the little cloud icon should be orange
53+
54+
You can now test your setup by running
55+
56+
```bash
57+
curl -v https://assets.example.com/path/to/some/asset.jpg
58+
```
59+
60+
which should work.
61+
62+
Now change your app to serve asset URLs of the form `https://assets.example.com/path/to/some/asset.jpg` - in Rails you'll want to have a look at the `asset_host` config value.
63+

cooking/bread.md

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Bread
2+
3+
## Adam Ragusea pizza bread recipe
4+
5+
https://www.youtube.com/watch?v=o4ABOKdHEUs
6+
7+
Notes
8+
9+
* Followed instructions
10+
* Not all dough balls rose the same way in Fridge - one is quite a bit flatter - why?
11+
12+
Questions
13+
14+
Do I want a thicker crust? fast bake
15+
16+
Bake #1
17+
18+
* I heated oven to as hot as I could get it (280-290 C) and heated by cast iron pan
19+
* the dough was almost overcooked on underneath
20+
* had a thin crust
21+
* I assume the fast cook time contributed
22+
* I cooked it for 8 mins ish - it was undercooked but was about to become too brown
23+
* I preheated the oven for approx 1hr
24+
* I probably overheated the pan
25+
26+
Verdict: Ok but not great
27+
28+
Bake #2
29+
30+
* Dough was in Fridge for 6 days - had nice ripe bananas smell, had risen to double its size
31+
* Pre-heat oven to 260 C (it oscillated between 250-260 C because my oven's not great)
32+
* Putting cast-iron pan in at start for 30 min
33+
* Baked for 12 mins
34+
* Browning was good, both bottom and top - not too brown on the bottom/pan side
35+
* Thin crust from the fast bake - not sure if that's good or bad?
36+
37+
Verdict: decent

0 commit comments

Comments
 (0)