I migrated this blog to github pages hosting, as a result. The CGP load balancer is expencive for just routing GS hosted content.
This is memo for that.
On GitHub Pages, choose project page(USER.github.io/PROJECT.github.io) and publish
It seems that we can use only top directory pushlish setting, if we choose user page(USER.github.io).
On hugo, add one line in
publishDir = "docs"
build and push, then, https://yokomotod.github.io/yokomotod-io.github.io becomes to visible.
Next, to use custom domain with SSL, I chose Cloud Flare.
Add new site on CloudFlare with
yokomotod.io domain. Register
126.96.36.199 as A record. Then change Name Server to Cloud Flare’s one on DNS provider settings.
yokomotod.io in custom domain field, on GitHub repository setting.
After Cloud Flare recognize DNS settings change, http://yokomotod.io becomes to visible.
The reason why it shows
USER.github.io/) is that GitHub handle it according to request server name? Cool.
In addition, just enabling SSL settings on Cloud Flare, https support completed. Cool, Cloud Flare.