Live data from Hacker News

How I blog with Obsidian, Hugo, GitHub, and Cloudflare

ingau.me

211–220 of 248 posts

Re: How I blog with Obsidian, Hugo, GitHub, and Cloudflare

#211

> … and no risk of platforms disappearing or changing policies. Those risks still exist. GitHub and Cloudflare can do these things at any moment.

> GitHub and Cloudflare can do these things at any moment

I hosted mine in AWS S3 with CloudFront for Https and custom domain. Using Hugo too. I wrote Cloudformation template for whole setup [0], just create the CFN stack using template in AWS. Then copy public html to S3 using "aws s3 sync" and done!

[0] https://github.com/neutor/bite-sized-aws/blob/main/static-s3...

Re: How I blog with Obsidian, Hugo, GitHub, and Cloudflare

#212
With a similar intention, I made an open source blog tool that stores md files on Github: https://github.com/mazzzystar/tinymind

No deployment is required, just authorise Github to access your public repo permissions. It will create a repo called "tinymind-blog" under your Github account. Every update you make will be committed to your Github repo, ensuring data synchronisation at all times.

Re: How I blog with Obsidian, Hugo, GitHub, and Cloudflare

#213

Earlier quoted context omitted.

Yikes, I'd strongly discourage unfiltered ingress PAT to your desktop machine. I know you have acknowledged the decision to entrust nginx with all of your personal data and tax records and bank statements and legal documents and browser history and GitHub credentials and ssh private keys and so on. But it's still madness. You are one oversight, accident, or bug away from total pwnage.

All of this applies to using your browser and your browser automatically executes code from random sources . If this is your threat model then how are you even posting on HN? Shut down that insecure browser quickly. It is tens of thousands of times more likely to expose your personal data etc etc than nginx. Running nginx isn't madness. Thinking nginx is more of a risk, or even comparable to, your normal daily browse…

You are not educating me in any way. And obviously I don't browse with JavaScript enabled.

We could go back and forth all day about the likelihood of a v8 sandbox escape vs RCE in a big C program. But another risk to consider is a non-obvious misconfiguration. A default server block with a wildcard server name. A stray symlink inside the docroot. An unexpected mount point. A temporary config change that you forget to revert. So many ways to fail...

Regardless, trusting your entire personal data security to a single layer of protection is madness.

Perhaps only exceeded by the logic of "it hasn't happened for a long time, therefore it will never happen again".

Good luck.

Re: How I blog with Obsidian, Hugo, GitHub, and Cloudflare

#214
post #112

I've started recently working on setting up the "special" public profile repository in GitHub to be my blog central and wanted to keep the files to a minimum. So, I really like using themes as modules in Hugo, then your blog repository will be just your content directory, go.mod, go.sum, hugo.toml, and any layouts you want to override or add. . ├── .devcontainer │ └── devcontainer.json ├── content │ └── posts │ ├── 1…

Just out of curiosity, what would the Hugo toml file look like and do you use multiple themes?

I found this as a source. Just like most Hugo.toml with the added module.imports and you have to use the full import name, not just the theme name.

https://discourse.gohugo.io/t/how-to-add-a-theme-using-modul...

I don’t have any but I’ve been swapping out to see which I like better and trying to make my own too.

Re: How I blog with Obsidian, Hugo, GitHub, and Cloudflare

#215

Great stuff, looking forward to your next blog post in 1 year: “How I rebuilt my blog on…” A fun hobby of mine is Googling “how I built this blog with [next.js/Gatsby/etc etc]” and going to page 10 of the Google results. It’s just hundreds of developer blogs with no blog posts other than the ones announcing how the blog was built.

Counterpoint: gwern.

Re: How I blog with Obsidian, Hugo, GitHub, and Cloudflare

#216
post #139

Earlier quoted context omitted.

In that sense, everything is "fully owned" and the phrase is meaningless. But in the context of the summary where you're using it, it certainly sounds like you are claiming ownership on the infrastructure

I don't know, where do you draw the line? If I host it myself using nginx running on a VPS, does that count? Or still no, because I don't own the VPS? What if it's a dedicated machine, colocated? What if it's at home, but I pay an ISP? edit: Downvoted, care to explain why? I genuinely wrestle with this question. I self-host lots of services at home - and I also self-host services on a cloud VPS, which have better ava…

The cloud VPS isn't self hosting if you don't own the server. It would be like saying that you self-host your email service because you opened a GMail account

Re: How I blog with Obsidian, Hugo, GitHub, and Cloudflare

#217

> This stack gives me full control: no subscriptions, no vendor lock-in, > and no risk of platforms disappearing or changing policies. I'm not trying to dunk on the author, but this sentiment encapsulates a tremendous paradigm shift in the meaning of "full control", compared to say: * Writing in obsidian * Syncing files via git * Publishing via nginx hosted on the cheapest possible vps (with https via let's encrypt)…

Do you even need https for static content?

Re: How I blog with Obsidian, Hugo, GitHub, and Cloudflare

#218

I set up a friend’s prolific blog with a very similar approach many years ago using pelican and pushing to a git server vps where a tiny custom python wevserver serves whatever is in git. Only friend has struggled to get pelican and git etc set up on a new laptop. And tbh I am lost - and horrified - at the latest windows. Not keen on being tech support and working out why python command hangs etc. And my custom vps s…

Run things in WSL instead of Windows native? Python, git, Pelican, etc. should just work there, as it's just Linux. VSCode can open WSL folders directly. WSL git operating in Windows folders does work, but it's slow and occasionally has strange errors.

Re: How I blog with Obsidian, Hugo, GitHub, and Cloudflare

#219

> This stack gives me full control: no subscriptions, no vendor lock-in, > and no risk of platforms disappearing or changing policies. I'm not trying to dunk on the author, but this sentiment encapsulates a tremendous paradigm shift in the meaning of "full control", compared to say: * Writing in obsidian * Syncing files via git * Publishing via nginx hosted on the cheapest possible vps (with https via let's encrypt)…

Do you even need https for static content?

Yes.

(For "social reasons": If you have any feedback channel on your static site, people won't stop breaking your balls until you add https.)

Re: How I blog with Obsidian, Hugo, GitHub, and Cloudflare

#220

> This stack gives me full control: no subscriptions, no vendor lock-in, > and no risk of platforms disappearing or changing policies. I'm not trying to dunk on the author, but this sentiment encapsulates a tremendous paradigm shift in the meaning of "full control", compared to say: * Writing in obsidian * Syncing files via git * Publishing via nginx hosted on the cheapest possible vps (with https via let's encrypt)…

It has more to do with Obsidian vs Notion or OneNote or Google Keep I'm gonna guess
Post reply on HN