HeardLibrary / twine-for-wikicite

An interactive story to welcome new users to WikiCite
GNU General Public License v3.0
6 stars 0 forks source link

Register Domain Name #71

Closed awesolek2 closed 3 years ago

awesolek2 commented 3 years ago

Andy is working on this.

awesolek2 commented 3 years ago

@CliffordAnderson @baskaufs @marjans74 @Talinum @cylew Any thoughts on a domain name? I was thinking http://learnwikidata.net (.com or .org are also available)

baskaufs commented 3 years ago

In https://github.com/HeardLibrary/twine-for-wikicite/issues/68#issue-916673299 Cliff suggested wikicite4librarians. Personally, I think our videos are broadly applicable enough that something more general like learnwikidata.net might be better.

awesolek2 commented 3 years ago

Apologies, I didn't see that card on the board. @baskaufs the Twine story is hosted solely on GitHub, right? Barring objections, I'll register learnwikidata.net this afternoon, and configure the DNS to point to the GitHub servers.

baskaufs commented 3 years ago

Yes, if you point it to https://heardlibrary.github.io/twine-for-wikicite/, then whatever starting page we set as index.html in the folder will get loaded. That can be either the start of the Twine story, or another non-Twine page if we go with a separate page for the splash page.

CliffordAnderson commented 3 years ago

Hey @awesolek2, please do register the domain name you have in mind. Sounds better than the one I proposed!

awesolek2 commented 3 years ago

Done! I will take 30 minutes or so to process, but I'll let you and @baskaufs know when it has and I've configured the DNS. The .net address is going to cost $11/year, but I see no problem absorbing that through the DiSC AWS account.

awesolek2 commented 3 years ago

@baskaufs OK, I think I have it set up. When I type learnwikidata.net it is redirecting to github, but I get a 404 for the page. I'm hoping that once you configure the specific page it will work.

baskaufs commented 3 years ago

I have been reading up on managing custom domains here. When I went to the settings page to configure it on the GitHub side, I got this: image

I read the troubleshooting page and it says that the CNAME file must contain only the domain name, i.e. heardlibrary.github.io. Since that subdomain is used by the whole library, that implies to me that our site will be the only one that will be able to direct to the library's github site.

There must be a way to set up a redirect to an index.html file in a subpath of the subdomain (i.e. heardlibrary.github.io/twine-for-wikicite). But I'm out of my element. @CliffordAnderson I think you have more experience with setting up websites like this. Any advice?

CliffordAnderson commented 3 years ago

Let's switch on "Enforce HTTPS" for the site, @baskaufs.

baskaufs commented 3 years ago

@CliffordAnderson Did you do something to fix this or did it fix itself over time? The custom domain mapping is working now!

No problem, I was planning to do that once the certificate was ready. Actually, I just looked and the box is already checked.

However, there is still a warning that "www.learnwikidata.net is improperly configured Domain's DNS record could not be retrieved. For more information, see Learn more (InvalidDNSError). We recommend you change this to a CNAME record pointing to heardlibrary.github.io."

CliffordAnderson commented 3 years ago

@baskaufs, sorry to bother you. I just did it myself. On your earlier question, @baskaufs, it seems like Github already sorts out the pages just fine. The main github page for Heard Library is working fine alongside our new Learn Wikidata site. But the DNS still shows a configuration error, @awesolek2. Screen Shot 2021-06-14 at 9 14 35 AM Can you maybe check that out?

awesolek2 commented 3 years ago

OK, I had www.learnwikidata.net set to redirect to heardlibrary.github.io/twine-for-wikicite. Just edited the record to redirect to heardlibrary.github.io. So hopefully that works.

baskaufs commented 3 years ago

I'm thinking that the issue is with www.learnwikidat.net vs. learnwikidata.net. learnwikidata.net works, www.learnwikidata.net doesn't. The troubleshooting page says that if properly configured the www subdomain is automatically redirected to the apex domain (learnwikidata.net). Supposedly, you can configure either in the DNS record and one will automatically redirect to the other.

CliffordAnderson commented 3 years ago

@awesolek2 I think that'll redirect our site to the main library site. I think you'll need to change it back, Andy. As Steve indicates, we just need to add a subomain for 'www' to the DNS record, I think.

baskaufs commented 3 years ago

The other possible issue is that the CNAME file in the docs folder of the repo has "learnwikidata.net" vs. "learnwikidata.net/twine-for-wikicite". I'm wondering what will happen now that Andy made that change. I don't know how the DNS will know to send people to our repo.

CliffordAnderson commented 3 years ago

@baskaufs, that's my worry too. But let's see what happens. Maybe there is a routing tool on Github to handle these requests to projects.

awesolek2 commented 3 years ago

OK I changed it back. I'll look into adding a subdomain.

awesolek2 commented 3 years ago

OK, I think we are good to go now.

baskaufs commented 3 years ago

Here's what I observe at the moment:

  1. going to learnwikidata.net is fine.
  2. going to www.learnwikidata.net works, but results in this warning: image It may be that this certificate problem will solve itself with time since it seems like there is a delay in issuing the certificates.
  3. Checking the GitHub pages settings page has a different error message now that I don't really understand: image
awesolek2 commented 3 years ago

Hi Steve. I got that security warning the first time I went to www... too. I accepted the risk and the redirect worked, so I too was assuming it would take a bit for the certificate to authenticate. I just tried again on a different browser, and sure enough, no security threat! So, I think we are good.

CliffordAnderson commented 3 years ago

I'm still receiving warnings when trying https://www.learnwikidata.net/ on both Chrome and Firefox. So I think there may still be some tuning at AWS. I'd be happy to consult when you have a chance to hop online. Let's see if we can figure this out together.

baskaufs commented 3 years ago

I'm available this afternoon (Mon June 14). I just need to know when so that I can make sure I'm by my computer then.