From 9175df84f08f1b0efc0983ca4f8163db01842587 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Mon, 15 Jan 2024 09:49:01 +0000 Subject: [PATCH] add secret config --- src/main/java/opendota/Main.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/opendota/Main.java b/src/main/java/opendota/Main.java index 2a6f5e2d..9f6577c0 100644 --- a/src/main/java/opendota/Main.java +++ b/src/main/java/opendota/Main.java @@ -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) {