Support OC_HOST for remote access.

This commit is contained in:
Juergen Weigert
2025-04-06 14:27:07 +02:00
parent 6fc05f592b
commit a98c63846c
2 changed files with 6 additions and 1 deletions

View File

@@ -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

View File

@@ -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