Skip to content

binds the index server on all addresses to allow external access for … #46

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

Merged
merged 1 commit into from
Jun 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/zoekt-sourcegraph-indexserver/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ func main() {
root := flag.String("sourcegraph_url", os.Getenv("SRC_FRONTEND_INTERNAL"), "http://sourcegraph-frontend-internal or http://localhost:3090")
interval := flag.Duration("interval", time.Minute, "sync with sourcegraph this often")
index := flag.String("index", defaultIndexDir, "set index directory to use")
listen := flag.String("listen", "127.0.0.1:6072", "listen on this address.")
listen := flag.String("listen", ":6072", "listen on this address.")
hostname := flag.String("hostname", hostnameBestEffort(), "the name we advertise to Sourcegraph when asking for the list of repositories to index. Can also be set via the NODE_NAME environment variable.")
cpuFraction := flag.Float64("cpu_fraction", 1.0, "use this fraction of the cores for indexing.")
dbg := flag.Bool("debug", false, "turn on more verbose logging.")
Expand Down