Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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

    Scheduled Pinned Locked Moved Support
    6 Posts 3 Posters 42 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E Offline
      emejibka_8689
      last edited by

      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
      33443db5-44b3-473d-b09f-7035ef887d01-image.png

      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;
          }
      
      1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer
        last edited by

        Hello;

        Please check the BaseUrl property under Admin > Advanced. That will override the X-Forwarded-Host value.

        Cheers,
        Alana

        1 Reply Last reply Reply Quote 0
        • E Offline
          emejibka_8689
          last edited by

          Nothing changed. I try with null value in base url and "https://nuget.medinfocenter.ru/" value

          1 Reply Last reply Reply Quote 0
          • atrippA Offline
            atripp inedo-engineer
            last edited by

            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

            1 Reply Last reply Reply Quote 0
            • E Offline
              emejibka_8689
              last edited by

              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.

              stevedennisS 1 Reply Last reply Reply Quote 0
              • stevedennisS Offline
                stevedennis inedo-engineer @emejibka_8689
                last edited by

                @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?

                1 Reply Last reply Reply Quote 0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • 1 / 1
                • First post
                  Last post
                Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation