-
-
Notifications
You must be signed in to change notification settings - Fork 309
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
SourceGraph? #65
Comments
Completely untested, but you could try: # make sure that your dns has a cname set for sourcegraph and that your sourcegraph container is not using a base url
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name sourcegraph.*;
include /config/nginx/ssl.conf;
client_max_body_size 0;
# enable for ldap auth, fill in ldap details in ldap.conf
#include /config/nginx/ldap.conf;
location / {
# enable the next two lines for http auth
#auth_basic "Restricted";
#auth_basic_user_file /config/nginx/.htpasswd;
# enable the next two lines for ldap auth
#auth_request /auth;
#error_page 401 =200 /login;
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_sourcegraph sourcegraph;
proxy_pass http://$upstream_sourcegraph:7080;
}
} |
@nemchik Thanks for the help That looks like what I had tried as well, only I also included some extra code for it's 'management console' port as well, still no luck getting it working. Here's all of the code I have so far. Note that I also included the server code for my main domain as well (in the Code in
Code in
Container name is |
What are you doing with the port 3333? Anyway you shouldn't need to put that stuff in the default site conf. generally speaking that file should be left alone and use what comes out of the box unless you know what you're doing. As for the proxy conf it should be named |
@nemchik I use port 3333 so I can add that port to my router and have all traffic on that port go to a specific computer within my LAN. It seems to work fine. I've been doing that for years, and also have it working fine for ~16 containers so far. Ok, I'll remove the config from the default site conf and just add the config to the proxy. I was under the impression that all subdomains needed their own I have a Re: the different ports; sourcegraph, for whatever reason they chose, has the main "stuff" at one port, and the "management stuff" on a different port, with it's own uniquely generated, one time pw. I've never really had a chance yet to use it so I'm not sure why they chose that route rather than just include the management stuff in it's own area on the main port. btw, the reason I'm using it as it's own subdomain rather than subfolder is because (and I found this out after quite a bit of hair loss) is that this app in particular will only work as a subdomain. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue is locked due to inactivity |
Have any config samples up your sleeve yet for SourceGraph? ;)
The text was updated successfully, but these errors were encountered: