Skip to content
Snippets Groups Projects

Fix and clarify redirect HTTP logic

Merged Stan Hu requested to merge sh-fix-redirect-logic into master
All threads resolved!

redirect-http seemed to suggest the Pages daemon would redirect from HTTPS to HTTP, but it seems that the opposite was implied.

Fixes issue manifested by https://gitlab.com/gitlab-org/omnibus-gitlab/merge_requests/1348

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • mentioned in issue #54 (closed)

  • Nick Thomas mentioned in issue #55

    mentioned in issue #55

  • Nick Thomas added 1 commit

    added 1 commit

    • de395b28 - Fix and clarify redirect HTTP logic

    Compare with previous version

  • Nick Thomas resolved all discussions

    resolved all discussions

  • merged

  • Nick Thomas mentioned in commit fabfff48

    mentioned in commit fabfff48

  • mentioned in issue #46 (closed)

  • mentioned in issue #38 (closed)

  • Author Maintainer

    Thanks, Nick!

  • I can't find out why just yet, but on my nightly install of omnibus setting the redirect flag to false will still redirect to HTTPS. Event hough the tests cover this case. Sadly I don't have time to dig into this, but it seems the flag is broken in v0.4

  • @zj can you show me the command line?

    It needs to be -redirect-http=false. -redirect-http false enables the redirect, which is fun.

  • @nick.thomas

    $ ps aux | grep gitlab-pages
    /opt/gitlab/embedded/bin/gitlab-pages -listen-proxy=localhost:8090 -daemon-uid=998 -daemon-gid=998 -pages-domain=pages.zjvandeweg.nl -pages-root=/var/opt/gitlab/gitlab-rails/shared/pages -redirect-http=true -use-http2=true

    So this is wrong in omnibus, sorry for disturbing you. Didn't have the time yesterday to dig into this.

  • My bad, forgot to reconfigure. 😞 Sorry again.

  • Please register or sign in to reply
    Loading