Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Cant login in proget behind nginx proxy
-
Cookie after authtification does not save because domain does not same, my proget instance url nuget.medinfocenter.ru but in cookie I see domain localhost
My nginx config
location / { proxy_pass http://localhost:8000; proxy_set_header X-Forwarded-Host $http_host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_http_version 1.1; }
-
Hello;
Please check the BaseUrl property under Admin > Advanced. That will override the
X-Forwarded-Host
value.Cheers,
Alana
-
Nothing changed. I try with null value in base url and "https://nuget.medinfocenter.ru/" value
-
That's strange; we haven't heard this before, and I don't think that ProGet sets the domain in the cookie; can you check other URLS, to make sure the host is actually being forwarded, such as the nuGet package index?
here is some examples to help guide: https://forums.inedo.com/topic/3037/how-to-configure-the-proget-free-with-self-connector/13
-
Nothing strange. I check sources with dotpeek, X-Forwarded* headers does not using on login request. I add
proxy_set_header Host $http_host;
to nginx config for fix.
-
@emejibka_8689 got it, thanks!
So, ultimately, you were able to get it working by adding that?
I'd love to get a NGIX Guide together that walks through how to do this. What did your NGIX configuraitn end up looking like?