[-] SinTan1729@programming.dev 1 points 8 hours ago

Thanks for the insight. They submitted said they're willing to help with future issues, so I guess I don't need to worry about it too much. (I can just discontinue k8s support if they don't keep their word.)

2
submitted 21 hours ago* (last edited 20 hours ago) by SinTan1729@programming.dev to c/kubernetes@programming.dev

Someone added a PR to an app of mine adding instructions for k8s setup. I do like the idea of providing these instructions, but I don't have any experience with k8s whatsoever. The commits look fine to me, but in case anyone is experienced, I'd appreciate if you can take a look. I don't want to inadvertently add something malicious. Here's a link to the PR: https://github.com/SinTan1729/chhoto-url/pull/48, thanks.

[-] SinTan1729@programming.dev 2 points 1 week ago* (last edited 1 week ago)

Upon further testing, this does actually work. You may set both read_only: true, and cap_drop: all and it will work as long as you have a named volume. I had it mount a database file from the host system for my test config, which is why I was getting the errors. I don't know how to make that work though i.e. when the db is bind mounted from the host system. Setting the mount :rw doesn't seem to fix it.

[-] SinTan1729@programming.dev 2 points 1 week ago

That's great to know. Btw, you don't actually need to specify the url path for it to work. That's just for convenience of copying the link from the UI. It'll just work as long as the server is reachable at that address.

[-] SinTan1729@programming.dev 3 points 1 week ago* (last edited 1 week ago)

Thanks. I had never tested this before. Seems like it throws errors. Of course, adding and deleting links don't work. But that's to be expected. But also link resolution fails since it cannot update the hit count properly. If this is a legitimate use case for you, I might work on making it work.

[-] SinTan1729@programming.dev 9 points 1 week ago* (last edited 1 week ago)

Like the other guy said, it's not necessary. But docker makes it much easier to deploy. There are instructions to set it up without docker as well.

124

A simple selfhosted URL shortener with no unnecessary features. Simplicity and speed are the main foci of this project. The docker image is ~6 MB (compressed), and it uses <5 MB of RAM under regular use.

SinTan1729

joined 1 week ago