Aussie living in the San Francisco Bay Area.
Coding since 1998.
.NET Foundation member. C# fan
https://d.sb/
Mastodon: @[email protected]

  • 0 Posts
  • 14 Comments
Joined 3 years ago
cake
Cake day: June 14th, 2023

help-circle
  • There seems to be two groups of people:

    People that use services like AWS and pay hundreds (or more) per month: “Wow, hosting is so expensive now!”

    People that host a bunch of stuff on a $40/year VPS: “Wow, hosting is so cheap now!”

    I’ve got several VPSes with 40Gbps (shared) networking, 8 or 16GB RAM, decent amount of space on RAIDed enterprise NVMe SSDs, fast AMD EPYC CPUs, that cost less than $60/year. 20 years ago before VPS hosting became popular, you’d need to pay at least $100/month for a dedicated server with a consumer CPU, single IDE hard drive, tiny amount of RAM, on a 100Mb/s connection.

    Not to mention being able to host a bunch of stuff at home for cheap with a low-power single-board or mini PC., and Hetzner making dedicated servers very cheap too.



  • A lot of sites wouldn’t exist without ads, because they want their stuff to be freely-accessible and don’t have any other revenue streams. It would also cut off lower income people that couldn’t afford to pay.

    The only business models that have really worked online have been:

    1. Ad-supported.
    2. You pay for the service yourself, like a monthly subscription.
    3. Someone else pays for the service for you, for example freemium services (paid users subsidize the free users), a lot of Lemmy servers (admins cover the hosting costs), etc.

    If ads go away, a lot of sites/services would have to become paid services, and smaller ones might just shut down entirely. We’d end up with even more consolidation of the market.


  • Your comment isn’t entirely accurate.

    in an overwhelming amount of cases, that host networking will be a “here’s a device-local subnet your containers can join to”, so no, a Docker container won’t by default “get it’s own IP address”

    With the default NAT network, it gets its own IP in the 172.16.x.x range that Docker decides to use. That IP is accessible from the Docker host. It doesn’t matter that it’s not on your LAN - it’s still a dedicated IP. Port forwarding (or a reverse proxy) to it is a separate thing, and you can map a different port if you want to.

    Plenty of Docker containers use the same port (often 80, 3000 or 8000), and the reason you can use multiple of those containers concurrently is because each one is on a separate IP.

    The default NAT network isn’t commonly used for Home Assistant, though. It usually has a direct network connection to the LAN, since plenty of smart home devices rely on broadcasts for discovery.

    Also claiming that “nothing else will use port 80” is a gross over-simplification.

    It’s true for both the Home Assistant Docker container and for HAOS. In both cases, there’s no other web servers running in the container/VM. For the Docker container:

    • If you’re using the default Docker NAT network, the port you use to expose it to other devices is completely unrelated to the port used in the container. When you expose a Docker port, you specify the host port and container port separately.

      • Sometimes the port isn’t exposed to the LAN at all, for example if you’re using a reverse proxy. In that case, you usually use the docker container name as the upstream in your Nginx config or whatever, like proxy_pass http://hass/
    • If you bridge the Docker container to the LAN, it has its own IP on the LAN and no other web servers will be running on that IP.

    The actual reason that Docker containers don’t use port 80 by default is so they’re able to run in rootless mode without any extra capability grants. I don’t think Home Assistant supports rootless mode though.



  • There’s two supported ways to run Home Assistant:

    1. Home Assistant OS
    2. Docker container

    In both cases, it’s running on its own IP address, so nothing else will be using port 80.

    With Docker, you’d normally either use its standard NAT network, or bridge it to your LAN using a macvlan or ipvlan network. Bridging is usually better because some devices rely on broadcasts.

    You used to be able to run Home Assistant directly on an existing Linux system, but that’s been deprecated for over a year and unsupported since December last year.



  • I’d recommend self-hosting healthchecks and using runitor for your cronjobs. Runitor pings healthchecks when the cronjob starts, then pings it again on completion with the status (success or fail) along with the stdout and stderr.

    Healthchecks can be configured to expect a ping periodically (once per day, once per hour, whatever) and alert you if it doesn’t receive one.

    For backups, Borgmatic has a healthchecks integration.





  • For other alternatives with their own engine - the main ones are Yandex, Mojeek, and Qwant. DuckDuckGo is good, but most of their results come from Bing.

    Kagi is priced well for what you get. Search engines are very expensive to run. You don’t have to pay for the premium AI, and the pricing of the starter ($5/month for 300 searches) and pro ($10/m for unlimited searches) plans hasn’t been affected by AI. They’ve remained the same price ever since they launched in 2022.