this post was submitted on 20 Jun 2023
1 points (100.0% liked)

Lemmy Code / App Technical

3 readers
1 users here now

The code and application behind Lemmy. Beta testing new releases, API coding, custom changes, adding new features, developers

See also: [email protected] community, it's not always clear which one to put a topic into. "lemmycode" I'm trying to be more into actual code change proposals.

[email protected]

founded 2 years ago
MODERATORS
top 1 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 2 years ago

Speaking of hotfix, LemmyError in the logs doesn't pick up the nginx forwarded host.

So you get error messages about a server sending expired headers, but the logs don't reveal who the sender is.

modifying the code here: https://github.com/LemmyNet/lemmy/blob/main/src/root_span_builder.rs#LL21C3-L21C3

by adding line:
http.realip_remote_addr = request.connection_info().realip_remote_addr(),