Live data from Hacker News

Self-host your blog on a Raspberry Pi

blog.ban.app

1–10 of 20 posts

Re: Self-host your blog on a Raspberry Pi

#2
Dropping ddclient into a docker container as part of your compose files takes very few resources, and keeps your domain name pointed to your current public IP through changes. I've been running that for years without any maintenance besides remembering how to use the config file when I need to add a new domain.

As I'm writing though, that probably wouldn't help in most university network setups, which the article mentioned. Tunneling is probably the path of least resistance there.

Re: Self-host your blog on a Raspberry Pi

#4
> But if you are like me and your Raspberry Pi is sitting behind your router's firewall, you can't use this approach as your IP-address is changing all the time.

If your DNS provider has an easily usable API, you can set up something that checks your current public ipv4/v6 address and changes the DNS record if the IP address changes. You just need to set the DNS TTL to something smaller, such as 1 hour or less, to limit the impact of a changing IP address.

Re: Self-host your blog on a Raspberry Pi

#5

> But if you are like me and your Raspberry Pi is sitting behind your router's firewall, you can't use this approach as your IP-address is changing all the time. If your DNS provider has an easily usable API, you can set up something that checks your current public ipv4/v6 address and changes the DNS record if the IP address changes. You just need to set the DNS TTL to something smaller, such as 1 hour or less, to li…

I didn’t know that was possible, I’ll have a look at it :)

Re: Self-host your blog on a Raspberry Pi

#6
post #5

> But if you are like me and your Raspberry Pi is sitting behind your router's firewall, you can't use this approach as your IP-address is changing all the time. If your DNS provider has an easily usable API, you can set up something that checks your current public ipv4/v6 address and changes the DNS record if the IP address changes. You just need to set the DNS TTL to something smaller, such as 1 hour or less, to li…

I didn’t know that was possible, I’ll have a look at it :)

I've used this in the past: https://hub.docker.com/r/oznu/cloudflare-ddns/

Cloudflare is a nice option.

Re: Self-host your blog on a Raspberry Pi

#8
post #3

Docker has just been getting too good. Now I’m waiting for someone to create a docker fork where docker has access to the host system directly outside of the VM and shared volumes.

https://github.com/89luca89/distrobox may be of interest to you.

Although I'd argue "Docker without containers" is a UX achieve.

Re: Self-host your blog on a Raspberry Pi

#10
post #5

> But if you are like me and your Raspberry Pi is sitting behind your router's firewall, you can't use this approach as your IP-address is changing all the time. If your DNS provider has an easily usable API, you can set up something that checks your current public ipv4/v6 address and changes the DNS record if the IP address changes. You just need to set the DNS TTL to something smaller, such as 1 hour or less, to li…

I didn’t know that was possible, I’ll have a look at it :)

I’ve used http://www.duckdns.org/ with a raspi for this purpose.
Post reply on HN