nykula
@nykula@piefed.social
- Comment on CI/CD question: How do you actually deploy a self-hosted web app that runs in docker (preferably using Forgejo actions)? 1 day ago:
I have podman-compose on host. A single compose.yaml declares all images that should run and depend on each other. Then there’s a single .env file for config. A systemd user service runs
podman-compose upwith that .env file. A cron job periodically runs podman-compose pull, stops the systemd service, backups volumes and starts the systemd service back again. For the web app I write, its CI builds a Docker image and pushes it to the Codeberg registry, from which podman-compose picks it up. It’s very far from instant deploy, but works for my needs. - Comment on Would there be any benefit to switching from Fedora to NetBSD? 3 days ago:
The main question is - benefit to whom? Free software is like, take what you need, give what you can. Participating in projects where you can actually improve them and pass the improvements to others, who in turn improve something and pass them further, is the intended way of using it. Switch to what interests you, patch it, share patches, receive feedback, learn something, repeat. If you genuinely like NetBSD and believe you can make it better, go ahead, otherwise it’ll likely be a waste of time for everyone involved.
- Comment on Self-hosting messenger infrastructure 1 week ago:
There’s no federated messenger yet that withstands domain theft or abandonment while providing a good group experience, so I’m still waiting for someone to make one.
- Comment on Running web sites makes me not want to - Lowkey Party 1 week ago:
There were attempts to rewrite imageboard software with modern dynamic frameworks and caching infrastructure, but it scaled worse than oldschool index and thread html regeneration on post event, and was cancelled. The effort was called something like Infinity, by 8chan.
- Comment on Voting Software Recommendation (Preferably STAR or Condorcet) 2 weeks ago:
Nextcloud Forms have a ranked choice question type. The result shows the admin a Borda count, though for some reason it’s calculated on the front end, not on the server. Easy to set up, to share links, and to vote. Can be anonymous or require an account. Implementing Schulze STV or another multi-winner alternative is in my plans, but idk when I’ll get to that.
- Comment on Bottles Creator Mirko Brombin Wants Microsoft Office on Linux, Not Its Clones 3 weeks ago:
The more software runs well outside Windows, the stronger other operating systems are. So I think he’s right that running Office well is important to get users to switch, even if I stopped using it many years ago.
- Comment on Anybody running IncusOS here? 4 weeks ago:
Is incus-compose a part of the base system, or an add-on? How does it work on IncusOS if it’s a command-line tool and there’s neither a remote nor a local shell, only a web API? Does it provide a built-in way to automate container updates?
- Comment on Linus Torvalds "Did What I Preach", Used AI To Make Code Decipherable & Uncovered More Bugs 5 weeks ago:
I’d say “explaining how they got there” is math. Formal science in general is like, explain a problem so well that your worst enemy can’t help but agree with you. In programming, you have two such worst enemies: first the computer, and then the maintainer. Problem solving isn’t easy, but once you explain your problem well, you already have a big part of the solution. The definitions and the tests. Your solution can’t be reliable enough for others to build on top of it unless you have a good explanation - every part of the solution has to be useful on its own. In the statement that someone or something is better at solving problems but is bad at explaining the solutions, I see something deeply unscientific.
If somebody sends a working patch but the explanation is insufficient for the maintainers to understand it, it’s simply a bad patch, and the process of working with its programmer to build common knowledge about the problem and have the programmer refactor the patch until both they and every maintainer (including future generations of maintainers) understand enough of it, is how projects stay alive. I’m not convinced using LLMs as a lossy and noisy substitute for both the refactoring tools and the knowledge-building process is a good idea.
- Comment on Linus Torvalds "Did What I Preach", Used AI To Make Code Decipherable & Uncovered More Bugs 5 weeks ago:
Linus might win minor code benefits in the short term, but significantly damage the appeal of his project to young passionate idealistic individuals. There will be less non-corporate interest in the kernel from the next generation of developers, leaving the remaining old school leaning on “AI” ever more.
- Comment on What are the best learning resources? 1 month ago:
Where does OP say that they only want resources and no answers at all? Also you sadly misquote me by stripping context, I replied that there’s a simple solution (and how specifically to look for it) to one of their questions if one condition if satisfied, and that the problem doesn’t have an easy answer otherwise, therefore needing more research. I went out of my way to give OP brief answers and more specific questions for research, like I do for my students, and you make it look like I just wrote RTFM.
- Comment on What are the best learning resources? 1 month ago:
To your specific questions:
why people use traefik
Reverse proxies let you serve multiple apps from one server, encrypt your traffic and automate updates of encryption certificates. I use Apache (virtual hosts, mod_md) for this.
how and why to use docker containers
Modern web apps have many constantly shifting dependencies and don’t work closely with distributions on packaging them, so they have to be updated separately from the base system. They might also need different versions of these dependencies, and multiple instances of one dependency (e.g. database). Containers are one way to achieve that, and also ease backups, monitoring of individual apps, and installing an application in exact same way on development and testing machines.
what settings to change on the router
To expose ports 22 (ssh), 80 (http) and 443 (https) to world, forward them to your server.
how to connect and setup the domain
In the DNS settings for your domain, point “A” record to your home IP. That’s if you rent a static IP. If you don’t, things will be more complicated, research on your own.
how to do this safely
Bare minimum: set up daily backups of container volumes and reverse proxy configuration, same for updates of base system and containers, and turn off SSH password login in favor of keys. Test that a backup can be successfully restored in a virtual machine at least once a month.
- Comment on Observability Stack? 1 month ago:
What’s insecure about CGI? I thought the main reason it isn’t popular now is because runtimes are slow to start. Though IIRC when I used busybox httpd CGI with a small runtime, quickjs, speed wasn’t an issue.
- Comment on Observability Stack? 1 month ago:
To have logs from every container launch in journalctl, I have systemd run podman-compose without daemonizing it. To debug container logs, a shell is usually needed anyway, so I see little point in exposing logs through a web dashboard.
- Comment on Observability Stack? 1 month ago:
To add, journal-brief can e-mail you systemd logs. If your apps aren’t very noisy, this can be helpful without a need to set up a complex observability stack.
- Comment on Looking to move from Caddy 1 month ago:
Apache has mod_md, a built-in LetsEncrypt-compatible module that requires very little configuration and no external daemons or cron jobs: https://httpd.apache.org/docs/2.4/mod/mod_md.html Three lines per virtual host: MDomain, MDContactEmail and MDCertificateAgreement. Using it in production for three years without any issue. I don’t know what’s Apache stance on LLMs, I guess neither for nor against.
- Comment on Selfhosting as a Linux newbie - Ubuntu Server LTS or Debian 13? 3 months ago:
YNH ease of installation for everything is unrivaled, but upgrades even of popular apps such as Synapse broke on me repeatedly, backups didn’t want to restore, and my domain with it kept getting banned by Google Safe Browsing without explanation (fuck Google, but I didn’t have much success getting “normal” users to share that view). Other servers with manually written docker-compose files caused much less friction.
- Comment on Continuwuity 5 months ago:
Agreed that QR codes should be accompanied by text links for accessibility, because many times the scanning fails due to bad light, old camera or shaky hands.
- Comment on What are your self–hosted alternatives for inter device communication? 5 months ago:
Syncthing. I connect both devices to same Wi-Fi, copy a file to a shared directory, and wait a minute.
- Comment on What us the best way to add remote access to my servers? 8 months ago:
Have you tried adding Tor hidden services? It was the easiest solution for me to expose ports from behind the provider’s NAT to my phone when not at home.