Technicals #3
Deploying to Cloudflare
Remarkably simple!
- Create Cloudflare Account
- Connect to Github and select rep
- Set Cloudflare Build Settings
- Framework preset: Hugo
- Build command: hugo -b $CF_PAGES_URL
- Output directory: public
- Click Deploy
And that’s it!
Technicals - part 2
Some follow ups
Is it a good thing running the Hugo blog as root? It is inside an unprivileged container - but still? Anyway it’s a simple mater to create a hugo user, add it to sudoers and then go back to the PVE and change the uid and gid of the NAS mount points so that they are now owned by user hugo. Then the blog, copied to the hugo home folder and chown’d appropriately should just work
Technicals
A quick description of how this blog is set up, and how to create posts from an Android phone.
The blog is a simple set of pages, generated from local markdown files using the Hugo static site generator. Hugo is running on a small LXC container inside a Proxmox PVE on a little 5th generation i5 NUC running at my home location
The Hugo markdown files in the LXC containers are themselves simply a mount from a shared folder on my Synology NAS (sitting right next to that little i5 NUC). So basically any markdown files created or copied into that NAS shared folder will be a post for my blog when the Hugo site is compiled. There is a similar folder for static resources such as pictures to be included in the blog.