Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to set up management console behind reverse proxy #2759

Closed
djuarezg opened this issue Mar 15, 2019 · 2 comments · Fixed by #7197
Closed

Document how to set up management console behind reverse proxy #2759

djuarezg opened this issue Mar 15, 2019 · 2 comments · Fixed by #7197
Assignees
Labels
bug An error, flaw or fault that produces an incorrect or unexpected result, or behavior. docs

Comments

@djuarezg
Copy link

Question description

How should we configure an Apache proxy to work with the management console.

Is your question related to a problem? If so, please describe or link to another issue.

We configured a proxy in front on Sourcegraph, but after the upgrade to 3.X we have to configure access to the management console as well, which uses basic auth.

The problem is that the configuration update does not happen due to Unexpected HTTP 401: Unauthorized

The request does not send any cookie or basic auth as a parameter/header.

@sqs sqs added the bug An error, flaw or fault that produces an incorrect or unexpected result, or behavior. label Mar 15, 2019
@ryan-blunden ryan-blunden self-assigned this Mar 18, 2019
@ryan-blunden ryan-blunden added this to the 3.3 milestone Mar 18, 2019
@ryan-blunden ryan-blunden modified the milestones: 3.3, 3.4 Apr 8, 2019
@slimsag
Copy link
Member

slimsag commented Apr 23, 2019

Apologies for the delay here. Are you still blocked on this?

Currently, you should be able to configure the reverse proxy to allow management console access via a subdomain e.g. console.sourcegraph.example.com.

For an Apache proxy, a few quick Google searches tells me it would look like this:

ProxyPreserveHost On
ProxyPass / http://console.sourcegraph.example.com/
ProxyPassReverse / http://localhost:2633/

I have not tested the above, but that should work. Does this answer the question?

For doing this under a different path than / (i.e. without a subdomain), we will need a change to support that #2808. If you need that, please let me know.

@slimsag
Copy link
Member

slimsag commented May 13, 2019

Changing milestone to 3.5 for @ryan-blunden to document how to do this (since he also committed to testing and merging #2808 ), if this sounds wrong reassign me! :)

@slimsag slimsag removed their assignment May 13, 2019
@slimsag slimsag modified the milestones: 3.4, 3.5 May 13, 2019
@slimsag slimsag changed the title Cannot save management console config behind a proxy Document how to set up management console behind reverse proxy May 13, 2019
@ggilmore ggilmore modified the milestones: 3.5, 3.6 Jun 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error, flaw or fault that produces an incorrect or unexpected result, or behavior. docs
Projects
None yet
5 participants