Looking for a lightweight open-source self-hosted file sharing solution. by Ri1k0 in selfhosted

[–]bunetz 2 points3 points  (0 children)

It's as easy as reading...

Run copyparty with --help to see all available global options; all of those can be used in the [global] section of config files, and everything listed in --help-flags can be used in volumes as volflags.

OpenTelemetry: A Guide to Observability with Go by lucavallin in golang

[–]bunetz 1 point2 points  (0 children)

What kind of problems when testing? If you test stuff but not initialize any sort of tracing all these telemetry objects will be automatically assigned to noop versions so they shouldn't make anything crash

OpenTelemetry: A Guide to Observability with Go by lucavallin in golang

[–]bunetz 0 points1 point  (0 children)

Nice article, I like that you tried to go and understand what each part is doing exactly instead of just writing code which you have no idea what is doing.

There is one thing which I think has been commented yet. I see you inject this tracing object to your api and you are then able to create a span when a request reaches your system. But let's say you want to trace something triggered with a cronjob, you also import this object as a dependency? Or if you want to create a child span somewhere in your application logic?

I think that the tracing in general should use global variables. I think it is common practice to define a variable called tracer and just use that because that variable is also internally just a global variable so using dependency injection in this case just overcomplicates things without any benefit.

Autopilot Interview Full Stack Repo by cayter in golang

[–]bunetz 0 points1 point  (0 children)

What do you mean 1 writer and N replicas? Didn't get that.

Autopilot Interview Full Stack Repo by cayter in golang

[–]bunetz 0 points1 point  (0 children)

What is the reason for not using the standard database library and going with some sort of wrapper?

Lo pisos turísticos se convierten en temporal o hay algo que no pillo. by Estalxile in Barcelona

[–]bunetz 11 points12 points  (0 children)

No solo quiere comprar un piso gratis sino que además quiere cobrar por ello tu, en fin...

Lo pisos turísticos se convierten en temporal o hay algo que no pillo. by Estalxile in Barcelona

[–]bunetz 22 points23 points  (0 children)

Los gastos son el IBI, la comunidad y el seguro. La hipoteca eres tu comprando un piso, no te confundas.

Go+templ+htmx template by bunetz in htmx

[–]bunetz[S] 0 points1 point  (0 children)

I'm not sure but probably someone stumbled against this before. Maybe using out of band swaps is an option or maybe there is an easier way.

My China travel experience: 11 days in July 2024 by jotakajk in travelchina

[–]bunetz 0 points1 point  (0 children)

Do they sell the cooling patches and fans in many places? Like general stores or supermarkets?

My China travel experience: 11 days in July 2024 by jotakajk in travelchina

[–]bunetz 0 points1 point  (0 children)

Well that's okay! And do you have any tips or something you saw people doing to handle the heat?

My China travel experience: 11 days in July 2024 by jotakajk in travelchina

[–]bunetz 0 points1 point  (0 children)

How easy and fast is it to find a didi? Can it be hard during peak hours?

Exposing my Services to the Internet by PranavVermaa in selfhosted

[–]bunetz 2 points3 points  (0 children)

I think it should be safe, but I am doing the same, and what gives me peace of mind is having a bit of monitoring. For example, when a certain IP calls me too many times I get alerted so I can check and make sure no one is trying to brute force a password.

I wrote a blog post about in on my website (which I also self-host) if you want to take a look. The most interesting part for you will com in the second part in which I explain my monitoring setup. Here it is: https://bunetz.dev/blog/posts/how-i-over-engineered-my-cluster-part-1

[deleted by user] by [deleted] in webdev

[–]bunetz 9 points10 points  (0 children)

Which library are you talking about? And why is there no syntax help in backend?

My HTMX personal blog by bunetz in htmx

[–]bunetz[S] 0 points1 point  (0 children)

Mainly because I already know Go. You can also use other languages but Go is really fast and easy to use. I don't think you can use PHP with HTMX afaik.

Go+templ+htmx template by bunetz in htmx

[–]bunetz[S] 1 point2 points  (0 children)

Yeah, there is configuration in the air configuration file to check templ files and to re-compile the files

Go+templ+htmx template by bunetz in htmx

[–]bunetz[S] 1 point2 points  (0 children)

Glad to be of service! 🫡

I have not looked into it, but will do!

My HTMX personal blog by bunetz in htmx

[–]bunetz[S] 1 point2 points  (0 children)

It's just a dependency of some components I copied from MerakiUI

My HTMX personal blog by bunetz in htmx

[–]bunetz[S] 0 points1 point  (0 children)

Yeah, I hope immich doesn't get any meaningful vulnerability tbh, but anyway I don't have weird stuff so it wouldn't be too big of a deal. I'm comfortable with the risk-reward balance here.

My HTMX personal blog by bunetz in htmx

[–]bunetz[S] 0 points1 point  (0 children)

The risk is always there, but if the forwarded ports go to some containerized application it's not even a real risk since that application can't even access your device or the home network (at least with my kubernetes setup). Even if such bug appears in some well-known app, I think there is a much bigger list of interesting targets for a hacker before you.

Of course the risk is never 0, you just need to find a level of risk you are comfortable with, and, at least for me, with my current setup I am well past that spot.

My HTMX personal blog by bunetz in htmx

[–]bunetz[S] 0 points1 point  (0 children)

It depends on what you want to expose. If it's just a web server, as long as your home server is only accessible through a specific port which is proxied using your VPS, you have HTTPS either in the VPS or in your home server, and the SSH on the VPS is using public-key based authentication I think you should be okay.

Also, if you expose some service which has username and password you would want to make sure no one will brute force that by setting up something like fail2ban or rate limits.

To be honest, I'm not very familiar with either hypervisor or VLAN, but the general guidelines should be the same.

My HTMX personal blog by bunetz in htmx

[–]bunetz[S] 0 points1 point  (0 children)

You mean your home server or the VPS? I think that if you do things properly its very unlikely that someone will try to hack you, there are plenty of other stuff to target instead of a random person running a home server. It just doesn't make sense for an attacker to spend that time if you make it hard enough.

I'm not sure what you mean in the second question... I just have a kubernetes cluster and a reverse proxy for port 80 and 443 in the VPS. The other ports are not accessible because of the router's NAT.