From a98c63846cebd71f8f5e1f19bc0e27973c41867e Mon Sep 17 00:00:00 2001 From: Juergen Weigert Date: Sun, 6 Apr 2025 14:27:07 +0200 Subject: [PATCH] Support OC_HOST for remote access. --- deployments/examples/bare-metal-simple/README.md | 5 +++++ deployments/examples/bare-metal-simple/install.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/deployments/examples/bare-metal-simple/README.md b/deployments/examples/bare-metal-simple/README.md index 1de85df0b1..9fc4903adf 100644 --- a/deployments/examples/bare-metal-simple/README.md +++ b/deployments/examples/bare-metal-simple/README.md @@ -33,6 +33,11 @@ Set the environment variable `OC_BASE_DIR` to a directory where the both configuration and storage data are within a sandbox subdirectory in the current working directory. +## Server Address + +Set the environment variable `OC_HOST` to the full qualified hostname +or of this server to allow remote accesse. Default: `localhost`. + # Example Call diff --git a/deployments/examples/bare-metal-simple/install.sh b/deployments/examples/bare-metal-simple/install.sh index ab8aeff09b..bb790f8d93 100755 --- a/deployments/examples/bare-metal-simple/install.sh +++ b/deployments/examples/bare-metal-simple/install.sh @@ -77,7 +77,7 @@ export OC_BASE_DATA_PATH="$basedir/data" # It is bound to localhost for now to deal with non existing routes # to certain host names for example in WSL -host="localhost" +host="${OC_HOST:-localhost}" ./${dlfile} init --insecure yes --ap admin