mrmanager
61
1181
mrmanager

@lemmy.today

Long time linux user and tinkerer. Currently working as a devops engineer. Very positive to the idea of decentralized internet platforms. :)

mrmanager 2 points 5 days ago

I ended up using the external nginx for setting rules for rate limiting and such, and there I see the real ip. It's before traffic even gets to mlmym so that's good.

Also made sure to make it use the internal Lemmy url and skip a lot of the proxy stuff I was using earlier. It seems faster now.

path: 0 24149412 24280322 24288880 24289732 24290090 24320309, hotness: undefined, score: 2, children: 0
mrmanager 1 point 5 days ago

Try to hold shift and reload the entire old.lemmy.today site in the browser. It's possible the old mlmym and this new one are conflicting somehow.

I also changed a lot of stuff with networking for it, so it's faster now I think.

If you still have problems, try a different browser just to see if it works there. Then we know it's a browser issue if it does.

path: 0 24253765 24254048 24254459 24254597 24254905 24255489 24255777 24265492 24320243, hotness: undefined, score: 1, children: 0
mrmanager 2 points 6 days ago

I will experiment more with this tomorrow or the coming days then. I was trying to get it to work previously but failed (not using your fork but the original mlmym).

path: 0 24149412 24280322 24288880 24289732 24290090 24290126, hotness: undefined, score: 2, children: 0
mrmanager 2 points 6 days ago

Yeah, I have a custom setup currently just to try and get the source ip, but it doesn't work properly in all cases. And most of the bots use old.lemmy.today since they know mlmym doesn't forward the source ip address, and therefore it's hard to rate limit them.

So it would be amazing if you could forward those 4 headers. Then I will setup nginx to forward those headers to mlmym, and mlmym will forward them when making a request to Lemmy.

I actually thought it was making a https connection to Lemmy but perhaps it doesn't, and nginx just forwards http to https. Not sure. Will have to look into this more.

But yeah, whenever you have time to add the headers, i will investigate more. Not super urgent but will be interesting to play with that later. And it will protect all Lemmy instances that use your fork, so thats good.

path: 0 24149412 24280322 24288880 24289732, hotness: undefined, score: 2, children: 3
mrmanager 2 points 7 days ago

I wanted to ask you also if you could forward certain http headers to lemmy when it makes a request? Currently it doesnt forward them so lemmy thinks all the requests from mlmym to lemmy are from the docker ip its running on. And that makes it much harder to rate limit or ban bots since all requests are from the docker ip.

So basically, mlmym should preserve and forward X-Real-IP, X-Forwarded-For, X-Forwarded-Proto, and X-Forwarded-Host when proxying API/backend requests to Lemmy, because Lemmy uses these headers for correct client IP detection and rate limiting.

Something like this in the code where the incoming request is handled:

const forwardedFor = request.headers.get("x-forwarded-for");
const realIp =
  request.headers.get("x-real-ip") ??
  forwardedFor?.split(",")[0]?.trim();

const headers = new Headers(request.headers);

if (forwardedFor) {
  headers.set("x-forwarded-for", forwardedFor);
}

if (realIp) {
  headers.set("x-real-ip", realIp);
}

headers.set("x-forwarded-proto", request.headers.get("x-forwarded-proto") ?? "https");
headers.set("x-forwarded-host", request.headers.get("host") ?? "");

That would really help a lot and allow me and others to remove a lot of complicated workarounds for trying to get the source ip.

path: 0 24149412 24280322, hotness: undefined, score: 2, children: 5
mrmanager 179 points 3 years ago

It may be the last few years of the free web because of Google. Their goals are clear.

Please switch to Firefox, another search engine and another email provider...

path: 0 1746451, hotness: undefined, score: 179, children: 25
mrmanager 96 points 3 years ago

And that's exactly the point. WEI makes it a world where big tech decides if they are going to support a competing browser, a competing operating system like Linux, or plugins against ads. They can also force you to have any number of plugins installed, from their choosing.

It destroys the free web completely.

path: 0 1813802 1813909, hotness: undefined, score: 96, children: 10
mrmanager 82 points a year ago

100%, its incredibly obvious.

No, I was watching the bond market. The bond market is very tricky. I was watching it, but if you look at it now, it’s — it’s beautiful. The bond market right now is beautiful. But, yeah, I saw last night where people were getting a little queasy.”

Hard to believe these are US Presidential quotes. Sounds more like some teenage barista smoking pot.

path: 0 16362999, hotness: undefined, score: 82, children: 7
mrmanager 76 points 3 years ago

Try container tabs!

They have separate sessions so you can be logged in to the same site on multiple accounts. This is extreamly useful for stuff like being logged in to github using work account and company account or other sites where you just need many accounts. Aws is another good example.

There is also temporary containers that leave no trace at all.

path: 0 1791803 1792827 1793363, hotness: undefined, score: 76, children: 16
mrmanager 70 points 3 years ago

It's ad blocking and entire operating systems, or computers configured in any way they don't like.

If this goes through, they can force you to install any plugins they wish, or disable any plugins they wish. Or make sure you don't run Linux and only Windows or Mac. They can force you to have your camera on. They can do anything since they make the rules.

No innovation will take place. Competing browsers or software will not be allowed or manipulated into marketed as "unsafe".

This is a takeover of the open web stack as we know it.

path: 0 1813174 1813898 1814687, hotness: undefined, score: 70, children: 1
mrmanager 69 points 7 months ago

"Client wont wait" - lol :)

For some people, they spend their entire lives inside the matrix. Only when they get old, they realize that none of the work they did matters. Unless it was for the good of humanity.

path: 0 20542936, hotness: undefined, score: 69, children: 14
mrmanager 66 points 3 years ago

The way they talk to the mods is absolutely infuriating and the "best" part is they they don't even recognize it themselves.

path: 0 1498247, hotness: undefined, score: 66, children: 8
mrmanager 62 points 3 years ago

Thanks for your hard work! Lemmy is really taking off and it's showing how people can communicate without a corporation in the middle. Somehow this has been lost on younger internet users. They think they need to go to some big tech site to connect to other people. Who made those guys our overlords? Fuck them.

path: 0 939269, hotness: undefined, score: 62, children: 4
mrmanager 59 points 3 years ago

Sure - only people who create content give it away for free.

Reddit is in the business of taking that free labor and telling people they own that data and set rules for it. Got it.

path: 0 497339, hotness: undefined, score: 59, children: 8
mrmanager 58 points 3 years ago

European companies somehow survive just fine with people being in unions. There are many strong protections in place, which is why we have 6 weeks vacations, maternal leave and so on.

path: 0 1297060 1299513 1299790, hotness: undefined, score: 58, children: 8
mrmanager 57 points 3 years ago

Sort by 6 or 12 hours is super important.

path: 0 1673872, hotness: undefined, score: 57, children: 1
mrmanager 52 points a year ago

Land of the fee.

path: 0 14126778, hotness: undefined, score: 52, children: 3
mrmanager 46 points 3 years ago

Googles wet dream to make all web pages like this.

path: 0 1793125 1794882, hotness: undefined, score: 46, children: 0
mrmanager 45 points 3 years ago

Strangely enough, many people do things for other reasons than money. :)

path: 0 1662454 1662872 1664069 1665330, hotness: undefined, score: 45, children: 7
mrmanager 44 points 3 years ago

Everything from these big corps have no soul. Because we know it's just about exploiting users for money.

I want the old internet back so bad. Hopefully federation can fuel many new actually fun services that are not built to make money but to actually entertain and amuse people, or simply be useful.

I personally feel pleasure from doing good things in the world. But it seems to be a group of people who doesn't feel it's worth doing something for others unless there is money to be made from it.

path: 0 1517933 1519000, hotness: undefined, score: 44, children: 3

thanks for using Leebra!

go to feed...