Skip to content

How is the new API system working? #2339

Closed Answered by dhmello
dhmello asked this question in Q&A
Jul 23, 2024 · 7 comments · 10 replies
Discussion options

You must be logged in to vote

Thank you all very much for the attention on this topic, but I managed to solve the problem, and I am posting here how I made it work, in case it is useful for someone.

Special thanks to @adiif1 @XFallSeane for discord support

I defined my Ubuntu iptables as follows:

127.0.0.1 api.rebornia.com.br
127.0.0.1 rebornia.com.br

"KnownProxies": ["127.0.0.1","MY EXTERNAL IP"],

In Nginx

proxy_set_header X-Forwarded-Scheme $scheme;
proxy_set_header X-Forwarded-Proto  $scheme;
proxy_set_header X-Forwarded-For    $remote_addr;
proxy_set_header X-Real-IP          $remote_addr;

And with that, everything works now.

Replies: 7 comments 10 replies

Comment options

You must be logged in to vote
1 reply
@dhmello
Comment options

Comment options

You must be logged in to vote
1 reply
@WeylonSantana
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@dhmello
Comment options

@dhmello
Comment options

Comment options

You must be logged in to vote
1 reply
@dhmello
Comment options

Comment options

You must be logged in to vote
4 replies
@adiif1
Comment options

@dhmello
Comment options

@jcsnider
Comment options

@adiif1
Comment options

Comment options

You must be logged in to vote
1 reply
@jcsnider
Comment options

Answer selected by dhmello
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants