[x] For route53, only setting apex domain A and github setting is not enough, look at this post, also have to setup www.shaungc.com CNAME to rivernews.github.io.
[x] Root website working, TLS working now. But static files not! Going to shaungc.com, the resources will claim on shaungc.com/iriversland2-spa/main.js. Will changing angular's build --base-href solve this? No...🛑
[x] Looking at this post suggests that --base-href should be the full custom domain, also provide a CNAME file in src! Working now after setting it to https://shaungc.com
[x] 🛑 OK, now another issues come out, we'll create another comment block for this. This will gonna be long.
[x] Clean up - api dockerfile no longer needs to build node (frontend)
[ ] Update doc, so that they reflect separate repo change.
e.g.
.../portfolio/38
(Problem Roulette), will give 404 not found.Initial Inspect:
Steps:
/portfolio/38
in S3 it will still try to find it in bucket, which it should not.Potential solutions:
See if local angular can run in its repo, and successfully request against django.External page, login, internal page, and post editing request should all be workingshaungc.com
api.shaungc.com
would be nice/
forshaungc.com
in K8's ingressCNAME
for frontend to useshaungc.com
CNAME
, except it is AWS resource, say, S3. Two options:www.shaungc.com CNAME
torivernews.github.io
.shaungc.com
, the resources will claim onshaungc.com/iriversland2-spa/main.js
. Will changing angular's build--base-href
solve this? No...🛑--base-href
should be the full custom domain, also provide aCNAME
file insrc
! Working now after setting it tohttps://shaungc.com