Skip to content

Commit

Permalink
add secret config
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Jan 15, 2024
1 parent aaf6cd6 commit 9175df8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/opendota/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public void run()
ip = RegisterTask.shellExec("hostname -i");
}
int nproc = Runtime.getRuntime().availableProcessors();
String postCmd = "curl -X POST -L " + System.getenv().get("SERVICE_REGISTRY_HOST") + "/register/parser/" + ip + ":5600" + "?size=" + nproc;
String postCmd = "curl -X POST -L " + System.getenv().get("SERVICE_REGISTRY_HOST") + "/register/parser/" + ip + ":5600" + "?size=" + nproc + "&key=" + System.getenv().get("RETRIEVER_SECRET");
System.err.println(postCmd);
RegisterTask.shellExec(postCmd);
} catch (Exception e) {
Expand Down

0 comments on commit 9175df8

Please sign in to comment.