marsara9

joined 2 years ago
[–] marsara9@lemmy.world 8 points 1 month ago* (last edited 1 month ago)

More technically there's two ways to move data between two separate services. You can either pull or push the data.

Assume for both scenarios that the client is your phone and the server is some machine in the cloud.

With pulls the client calls an API and the server returns a response. Generally the www works this way. You ask a server for a wab page and you effectively pull the source down to your browser.

Pushes work the opposite, in that a server has data for the client and needs to push or otherwise give it to you. Pulls are relatively strait forward because every server has a well known name (the domain name and url). But your phone's IP address changes constantly. So how does a server know how to contact your device? There's generally two ways:

  1. Your device can poll (make repeated pulls to a server checking for new data)
  2. Or you can register some identifier and your IP address with some central server every time it changes. And then the server can essentially call a URL on your device directly. This is essentially what Google and Apple are doing as it doesn't waste CPU resources and your battery.

You could in theory implement either of these yourself but because of the way the OSes work on both Android and iOS there's no guarantee that you can keep a process running in the background forever. As the OS can kill your process if the OS needs more free ram, etc ... The built in notification APIs are exempt from this because they are part of the OS.

[–] marsara9@lemmy.world 4 points 1 month ago

If you're worried about your IoT devices on your LAN the problem isn't necessarily that they can access WAN but rather that there's a security vulnerability and that they can be accessed by the WAN. Once a device is compromised and attacker can then use it as a "beachhead" to access other devices on your network.

So for example, with my setup every IoT device is on a separate VLAN (the guest network acts similarly) which can't get access to WAN, can't be accessed from the WAN and can't initiate any network calls to any other VLAN. Now my primary VLAN can talk to my IoT VLAN, and IoT can talk back, it just can't start the communication.

This does pose a problem for TVs though that need to talk to Jellyfin as hinted at in the original post. So what you could do is create a specific firewall rule that allows the TVs to at least initiate communication to Jellyfin but not any other device on your primary VLAN. This will probably require a more sophisticated router though than most of the consumer ones out there. Just be mindful that if n IoT device is compromised they can then try to attack the jellyfin server to jump to your other VLAN and then the rest of your network.

[–] marsara9@lemmy.world 1 points 1 month ago (1 children)

Just wanted to add... After reading your initial post I did some more digging on adding tracking headers, etc... especially by T-Mobile.

While it's definitely a thing, it only applies to HTTP traffic. Even HTTPS blocks their ability to add those headers. So any traffic that's using any other protocol (DNS, email, ssh, or just gaming, etc...) would be safe from your ISP from at least trying to add these tracking headers.

[–] marsara9@lemmy.world 2 points 1 month ago (3 children)

Yes but while the service is targeted for home use there still is remote work which generally requires a VPN back to the company network. They wouldn't be able to block this. Now sure they might be more inclined to block Mullvad but they'd impact too many businesses by blocking wireguard as a whole.

And assuming they did block Mullvad but not wireguard... Just rent a VPS and install a wireguard server and client there to bridge back to Mullvad.

[–] marsara9@lemmy.world 10 points 1 month ago (10 children)

I know this doesn't help much but I use T-Mobile cell towers with an always on VPN with no issue. But I don't see why they'd block Mullvad. (I'd be more concerned that they'd block them than wireguard in general). But there's completely legitimate reasons to use both so I don't see them really bothering to block either.

[–] marsara9@lemmy.world 2 points 2 months ago

To also add to the other comments: because the government doesn't want or even need to have a balanced "checkbook".

Assume for example you want to buy something from me. But you only have "don bucks". So you buy a widget from me and I charge you 10 "don bucks".

Problem though, through taxes you've only got 5 bucks left. So you just create 5 bucks and add it to your pile. (Deficit spending) Now if you don't balance that with a loan, your "don bucks" are now worth less because why would I want one of your "don bucks" when tomorrow you could just create a million of them for no reason. (Hyperinflation) So you instead borrow 5 bucks from a friend of yours with a promise to give him back 6 tomorrow. (Bonds)

I still sell you my widget for 10 "don bucks" but now what can I spend my newly acquired "don bucks" on? Well, since everyone has their own currency I ultimately have to spend it on you. This means I end up giving you those 10 bucks back in hopes that you'll either give me more in return (another loan/bond) or give me back my own currency from money I've traded to you.

So in the end spending more than you make (at the nation state level) can be a net boon on the economy as you effectively create a vendor lock in, similar to how companies push their gift cards, etc ... because that money is only good in one place. You just have to make sure not to spend too much beyond your means because every dollar you create this way adds to inflation a little bit. So if you create too much then inflation gets out of hand and you end up with hyperinflation and now every one of your citizens wants to get rid of your money because they'll lose too much before they can give it back.

[–] marsara9@lemmy.world 10 points 2 months ago (1 children)

If it was a certificate issue I'd expect youd just get an error from your browser saying the cert is invalid or expired.

If I had to guess though you're running into a nat reflection issue: https://nordvpn.com/cybersecurity/glossary/nat-loopback/

Read up on that. But you may need to provide different DNS entries if you're inside or outside your LAN or add a NAT hairpin rule to your router. But this is only applicable if you're exposing the same service to the WWW.

Some other things to try though:

  • Have you tried just pinging the address? Is the DNS resolution returning the address you expect?
  • Whats in your nginx logs? Do you see anything when you try and connect?
  • Within your nginx container can you ping your service directly? Is something blocking nginx from accessing the site?
[–] marsara9@lemmy.world 1 points 3 months ago (1 children)

Because of changes in how the lemmy API works I had to abandon the project awhile back.

The GitHub page is still up and if anyone wants to take over they're more than welcome. But the project would need a complete rewrite in order to function and even then there'd still be limitations.

[–] marsara9@lemmy.world 4 points 4 months ago

Yes, but Google at least innovated and tried to increase customer value with Android. They also make better phones (from some people's perspective) than Apple. I've seen nothing from Epic that tells me that their product is better than Steam. Sure they have free games, but that business model isn't sustainable and for the non free games, why would I buy from them vs Valve? Sure, if I was a developer I might get a better deal with Epic, especially if I can sign an exclusivity agreement), but I'm not a game developer I'm a gamer just looking to play my games on my PC as easily as possible.

[–] marsara9@lemmy.world 35 points 4 months ago (6 children)

I can't speak for anyone else but I can at least share why I didn't care for it.

Steam already exists and there isn't a lot I feel is missing from the Steam store. Not to mention there isn't anything that Epic does better than Valve for their storefronts. Epic doesn't provide any new value that Valve doesn't. In fact I'd argue that Epic causes negative value for several reasons:

  1. They essentially fragmented the PC market as now I can't access all of my games in a single location. The same reason for example that I hate that Netflix, Hulu, Disney+, HBO Max, etc ... exist. It just makes the overall experience less convenient and more expensive.

  2. Several features that Steam already has working are either broken or missing in the Epic Store. Especially around the shopping cart, etc ... I haven't gone to look recently to verify if any of these have been fixed and probably won't until the other points are addressed, if they even can be resolved.

  3. There's no level of trust with Epic compared to Steam. I have a massive Steam collection and Valve has shown time and time again that I can trust that my data is relatively safe with them. When was the last time you saw Valve in the media because of a data breach? When was the last time your Steam account got hacked. Epic is just new here so they haven't had a chance to earn that trust.

  4. Their motives for wanting to create a new store wasn't to improve the customer experience. Instead it was to improve their bottom line. The court cases against Google and Apple prove this. If they at least tried to have a PR campaign to show how Epic is innovating compared to Steam especially for making the customer experience better, the Epic Store might have sit better with me.

  5. Timed exclusives. Similar to point 1, but they were just trying to use their massive cash reserves from Fortnight to buy their way into the market rather than earn the trust of customers. This again resulted in fragmentation of the PC market.

Anyway, just my two cents.

[–] marsara9@lemmy.world 2 points 4 months ago (1 children)

I've tried commenting out the ports in the compose file, which should make them only available on the internal network, I thought. But when I do that, the containers can no longer connect to each other.

Did you create an explicit network for them to talk on? Otherwise the default docker network doesn't support internal DNS queries.

https://docs.docker.com/engine/network/#container-networks

Specifically you need a network using the bridge driver: https://docs.docker.com/engine/network/drivers/bridge/

[–] marsara9@lemmy.world 1 points 5 months ago (2 children)

Can you share the Home Assistant automation / setup that you have for Uptime Kuma notifications? As I'm in the same boat as you. I just got a webhook setup but I'm getting flooded with notifications, especially after services update.

My hope is I just want to be notified when a particular service is down for say 5 minutes but all I care about is knowing the node name. I don't necessarily care to get notified if the service comes back up.

 

I keep see people complaining about not being able to find active communities that match their interests. So I've added a new feature to https://www.search-lemmy.com/ that allows you to search posts for a particular topic and then it tells you which communities have the most posts matching your search query.

And assuming that you've set your home instance correctly, those links will even open up in your home instance, so that you can subscribe directly to them.

For example, if you search for 'linux' (https://www.search-lemmy.com/find-communities/results?query=linux&page=1) it gives you a link to each community, tells you which instance it's on and how many matches it found for your query.

All of the same filters that you can use on the normal search can be used here as well. So if you just want to find the best community that mentions linux on lemmy.world (https://www.search-lemmy.com/find-communities/results?query=linux+instance%3Alemmy.world&page=1), you can filter by just that instance. Click on the Search Tips button to see a list of all of the available filters.

P.S. I'm aware of https://lemmyverse.net/ etc... and while those are great as well, this allows you to search to see what people are actually talking about on the various communities.

Again, if you have any feature requests or find any bugs, PLEASE reach out or ideally go to my github (https://github.com/marsara9/lemmy-search) and log a bug there.

 

A couple days ago I updated https://search-lemmy.com/ to 0.4.0.

New features, that several people were asking for:

  • The UI has been overhauled and it should be much easier to find your home instance now.
  • Search itself has been overhauled. Increase search performance significantly. I also automatically search for related terms as well. You may now see fewer search results, but ideally they should be more relevant. You can also now include basic syntax like:
    • quotes: "some terms that must be together"
    • negative terms: cat -dog (shows posts about cats that don't mention dogs)
    • either or: cat OR dog (shows posts about either cats or dogs). The default search behavior is now an implicit AND, but order doesn't matter.
  • I've added several new filters that you can use including:
    • !safeoff -- Disables safe search allowing NSFW posts to appear in the search results (NSFW is now hidden by default)
    • since:YYYY-MM-DD -- shows only posts that have occurred since the specified date
    • until:YYYY-MM-DD -- same as above but in reverse. It will only posts up to the given date.
  • I've removed the preferred-instance query parameter from the results URL so it should be easier to share links to search results now.
  • The date the post was created or last updated is now displayed in the search results.

Bug Fixes:

  • Site performance should now be stable. Fixed a bug related to the database pool that was causing the site to hang.
  • Fixed a bug that would cause broken links.
  • Fixed various bugs with the crawler causing posts to be missed.

Known Issues:

  • If you set your home-instance to a fairly small instance, the number of search results is also relatively small. Once (https://github.com/LemmyNet/lemmy/issues/3259) is resolved. I should be able to show links regardless of what your home instance is set to, allowing you to search the entire Fediverse.
  • Currently searching only looks at the post title and body. Comments aren't indexed either. This also is dependent on the above issue on Lemmy itself.

Finally some things to note:

I've started to refactor the code to abstract away Lemmy from the actual search engine. As I now start to prepare to search other Fediverse instances like Kbin, and maybe even Mastodon, etc...

59
submitted 2 years ago* (last edited 2 years ago) by marsara9@lemmy.world to c/fediverse@lemmy.world
 

I shared bits and pieces of this before, but it's officially up and running now: https://www.search-lemmy.com/

This is an enhanced search engine for Lemmy. With a few primary goals:

  • You can choose a preferred instance. After choosing what your primary instance is, and performing a search ALL links will open in that instance.
  • This aims to be a replacement for using site:reddit.com in Google, but just for the fediverse.
  • You can filter the search results by:
    • Instance -- This will filter the results to only show communities that belong to a particular instance. Just type something like instance:lemmy.wrold or instance:https://lemmy.world/. This is separate from your preferred instance, such that you can search for posts on lemmy.world while still opening them on lemmy.ml.
    • Community -- You can refine the search by a specific community. You use the same syntax that you'd use here community:[!fediverse@lemmy.world](/c/fediverse@lemmy.world).
    • Author -- Similar to the above you can also filter by a specific author such as: author:@marsara9@lemmy.world.
  • The entire thing is open-source. You can view the code and even host your own instance... See more details here: https://github.com/marsara9/lemmy-search.

NOTE: This only supports Lemmy instances for now. Other fediverse type instances may be in the future depending on how this works out.

I've been working on this over just the last few weeks, so it hasn't had a chance to crawl much of the fediverse yet. For now it only supports lemmy.world and lemmy.ml but other preferred-instances will come online as time goes by.

If anyone finds any bugs, and I'm sure you will, or if anyone has any suggestions PLEASE raise an issue on GitHub for me to track. Lastly, if anyone wants to help contribute please feel free to reach out.

NOTE TO SERVER ADMINS: You can prevent your site from being crawled by adding lemmy-search to your robots.txt for the user-agent.

view more: next ›