Never ending redirects reverse-proxied Nette

olelug
Member | 1
+
0
-

Hi, I'm trying to use reverse proxy on a nette app I'm developing to use it on a subdomain. But as you try to go to website it redirects to the sign/in (intended) but it redirects try times and stops with the error that it redirects never ending. I saw on cookies that the cookie it gives changes 3 times.

Tried the http , proxy option on the neon config but also doent work.

And heres my nginx proxy config (some things hidden)

server {
server_name X.X.X;
listen X;
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
set $upstream http://X.X.X.X:X/;
proxy_pass $upstream;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port X;
proxy_set_header Accept-Encoding "";
}}

Rick Strafy
Nette Blogger | 81
+
+1
-

Do you have proxy configured in nette config? https://doc.nette.org/en/configuring#…