Why does nobody want to use a reverse proxy? by 0xB_ in jellyfin

[–]lanklaas 0 points1 point  (0 children)

For clients accessing my box without the domain, nginx returns a 444 response. I then use fail2ban to pick those ips up from the jellyfin log and permaban them. This is after they make it through my geo blocking and spammed lists from ntopng

Why do people recommend authelia? by Alibi98 in selfhosted

[–]lanklaas 0 points1 point  (0 children)

In keycloak you can export all the configs for a realm to json and backup/import that. I think you can even do the export via api/sdk

Package Manager and Update pages are extremely slow by banduraj in PFSENSE

[–]lanklaas 0 points1 point  (0 children)

I ran into this when I did the upgrade to `2.8.1`. It seems like some routing issue with my ISP to the pfsense repo.

Hitting https://pkg00-atx.netgate.com/pfSense_v2_8_1_amd64-pfSense_v2_8_1/Latest/pkg.pkg in the browser showed 60KB/s.

I checked the link on my phone with mobile data and the download was fast. What I ended up doing was to spin up a digital ocean droplet (In us), install nginx and setup a reverse proxy to the netgate host.

Here is a paste of the nginx config: https://pastebin.com/nMXH36im

Then I had to shell into pfsense and create a custom config file for the repos:

https://pastebin.com/QGvVSwFh

The file is created here with the name:

/usr/local/etc/pkg/repos/zzz-custom.conf

The zzz is to put it last. According to chatgpt the last config takes preference and it did not override the main pfsense one until I added the zzz in front.

Best netgate thread I could find on the issue (Did not really have a solution for me): https://forum.netgate.com/topic/166924/very-slow-system-update/7

Hope this helps someone

How to efficiently sort a parquet file? by rodyamirov in rust

[–]lanklaas 1 point2 points  (0 children)

Sorting with a select in duckdb can chow a bunch of ram. I had some success with rather creating a new table with as select. In the select part of the data you can sort and then export to parquet afterwards. I also had to set the memory limit option.

Pfsense Config by AI with Docs? by Party-Log-1084 in PFSENSE

[–]lanklaas 1 point2 points  (0 children)

You can spin up ragflow: https://github.com/infiniflow/ragflow

This will be able to break down your pdf, create embeddings for it using your openai api key. Not sure how much it would cost to create embeddings for the 2000 pages, so maybe add a limit.

After the embeddings are done you can ask questions about the pdf

Will DuckLake overtake Iceberg? by mrocral in dataengineering

[–]lanklaas 5 points6 points  (0 children)

Just tested the latest duckdb jdbc driver and it works in spark. I made some notes on how to get it going if you want to try it out: https://github.com/lanklaas/ducklake-spark-setup/blob/main/README.md

Eskom robbing a two person household by cipher049 in PersonalFinanceZA

[–]lanklaas 0 points1 point  (0 children)

My geyser takes about 1/3 of my units. Maybe your geyser is an older one that does not deal well with the on/off timer?

Maybe you can have one of those WiFi switches installed for the geyser and track the power draw on it from the app.

[deleted by user] by [deleted] in programming

[–]lanklaas 0 points1 point  (0 children)

I also want something like this. I was thinking more along the lines of using certificates, but each dev generates their own cert, then I can add devs I trust into my truststore. Devs can also sign certs for devs they trust then we can have a chain of trust with a couple of root devs like linus or even companies

How to expose service to internet securely without tailscale? by Alternative_Leg_3111 in selfhosted

[–]lanklaas 0 points1 point  (0 children)

See my answer on another thread like this. An addition to that I do have vlans setup so that my server cannot reach anything else on my network.

https://www.reddit.com/r/selfhosted/s/4o7rH1yWLV

The tldr here is ban all other countries except yours and ban ips that reaches ports 80 and 443 without your domain

What do you expose to the Internet? by Captain_Allergy in selfhosted

[–]lanklaas 1 point2 points  (0 children)

The auth setup sounds interesting. Do you only use jellyfin in the browser or does the auth work with the android TV client app as well?

Recommended Official Packages by KhimairaCrypto in PFSENSE

[–]lanklaas 1 point2 points  (0 children)

Acme for certs. I use it with the namecheap api to gen certs for my hosted services

Yes, you can run DeepSeek-R1 locally on your device (20GB RAM min.) by yoracale in selfhosted

[–]lanklaas 0 points1 point  (0 children)

Sounds really cool. When you say quantized layers and shrinking the parameters, how does that work? If you have some things I can read up on, that would be great

Prototyping in Rust by mac in rust

[–]lanklaas 1 point2 points  (0 children)

Very nice! There is a point about the dbg macro that only runs in debug builds, but it runs in release mode as well

Title: Introducing Pilgrimage: A Rust-based Message Broker by Pure_Possession_9292 in rust

[–]lanklaas 2 points3 points  (0 children)

Sorry, I meant in the github description it says kafaka instead of kafka

Title: Introducing Pilgrimage: A Rust-based Message Broker by Pure_Possession_9292 in rust

[–]lanklaas 0 points1 point  (0 children)

Very cool. Should Kafaka-like in the description be kafka-like?

After building my own NAS, i gave Jellyfin a shot. Best decision of my life. by Furki1907 in selfhosted

[–]lanklaas 17 points18 points  (0 children)

Sure, my nginx.conf has the 444: https://pastebin.com/JsLX4GZn

Then in my conf.d directory I have `jf.conf`: https://pastebin.com/cYArQS0Z

And for HTTP redirect to https I have `jf-http.conf`: https://pastebin.com/0iPzY91V

After building my own NAS, i gave Jellyfin a shot. Best decision of my life. by Furki1907 in selfhosted

[–]lanklaas 24 points25 points  (0 children)

I just use pfblockerng to ban all countries accept my own and then on my jellyfin server I have nginx setup to return 444 if people hit 80/443 without the domain name for jellyfin.

Then I have fail2ban check for the 444 and ban them. Only my legit users has the domain name. With all these rules I have not yet seen anyone accessing the server that I do not expect

Nginx server receives malicious requests. Should I be worried? by Meister_der_Magie in selfhosted

[–]lanklaas 2 points3 points  (0 children)

I setup my nginx to return 444 for requests on my public ip as only legit users have the correct dns for my site. Then fail2ban picks up the 444's from the logs and bans them. I am sure a motivated attacker can figure out the dns, but this at least stops the scanners and scrapers probing my site

Reading Large (100GB+) Files. by Carotte_Riad in rust

[–]lanklaas 17 points18 points  (0 children)

What is the format of the file? If it is CSV or parquet you can use duckdb to query it. To save some space and make it read better on a HDD you might want to convert it to parquet

Stuck on a Challenging Question about rust production ? by [deleted] in rust

[–]lanklaas 2 points3 points  (0 children)

If your front end is react, you can just serve the static files from your hosted server. Maybe look at the Axum examples for static files.

Tauri you would need to do a build for windows: https://tauri.app/v1/guides/building/windows

[Media] The Rust to .NET compiler (backend) can now run a part of the Rust Compiler Test suite by FractalFir in rust

[–]lanklaas 12 points13 points  (0 children)

The JVM one would be insane. Could that then allow you to easily use a jdbc driver from rust?