Anvil: Web apps with nothing but Python Transcripts
Chapter: Hosting on a custom domain
Lecture: Registering the app in our DNS configuration
0:00 Here we are at the DNS settings for talkpython.com.
0:03 It's at GoDaddy, I actually really dislike GoDaddy
0:06 as a company, but it's been around there so long
0:08 I just don't want to transfer it away and deal with
0:10 the consequence of possibly messing that up or the downtime
0:13 so it's staying there.
0:14 Our new domains I'm getting at domains.google.com
0:17 I like them a lot. But, here it is.
0:19 So, I'm going to use this, and we're just going
0:21 to add a name server.
0:23 The host is going to be fitnessd, and it's going to point
0:27 to that location that I already copied.
0:30 Time to live, let's make this as short as possible
0:33 'cause we're going to be possibly messing with it.
0:35 So, here we go. Well, it's done.
0:39 And here's where the patience comes in.
0:42 So, just going to wait a couple of seconds
0:45 to make sure that this works and then we'll see.
0:49 So, here's a good way to start.
0:51 Thing is, if you rush this too much
0:52 then you're going to get it cached locally
0:55 somewhere in the chain along the way
0:57 and your system, either in your local OS's DNS lookup
1:02 or maybe in your router, or maybe your ISP
1:06 but, we'll try.
1:10 All right, moment of truth, is the DNS ready?
1:12 Probably, let's give it a shot.
1:14 Aw, sweet, it's working.
1:17 Okay, so there's a chance that Anvil is ready.
1:21 Let's go back over here
1:24 and let's try going like that.
1:27 Aw. Now, I'm glad I ran into it.
1:29 I'm not glad this is here
1:31 but I'm glad I ran into this.
1:33 So, what's going on?
1:35 So if we look here you can see more information
1:39 about this certificate somewhere
1:44 maybe, maybe it's not pulling it down.
1:46 So, here's the deal though
1:47 let me take a step back.
1:50 So when we go to things like
1:56 and we look at the certificate
1:58 we'll see it's created by Let's Encrypt.
2:00 Let's Encrypt is awesome.
2:01 You can automate creating free SSL certificates.
2:05 And, just by the way
2:08 we go over here and look at this
2:10 similar, right, same thing.
2:12 Over here what we saw was we have this
2:15 if we look at more information
2:17 here, View Certificates, that's what I was looking for
2:20 and see that it's for *.anvil.app.
2:24 That's why when we go to this other view
2:29 here, where it's not .anvil.app
2:33 we're not seeing something nice, like SSL-encrypted
2:36 what we're instead seeing is that it's not ready.
2:39 Here's the process.
2:40 I told you it takes patience but it is easy.
2:43 The first part is we had to wait on
2:45 our DNS provider to update
2:47 so that fitnessd.talkpython.com resolved to something.
2:52 That was pretty quick.
2:54 The next thing we have to do is actually wait a little bit
2:57 for Anvil to run some automated scripts that go out
3:01 to Let's Encrypt and generate a certificate
3:04 for that domain for us.