diff --git a/configuration/README.md b/configuration/README.md index d1ff943de..244f180b5 100644 --- a/configuration/README.md +++ b/configuration/README.md @@ -59,3 +59,17 @@ To support execution in a simulated environment, V2X-Hub is in the process of in * **V2XHUB_IP** – Environment variable for storing IP address of V2X Hub. * **INFRASTRUCTURE_ID** – Environment variable for storing infrastructure id of V2X Hub. * **SENSOR_JSON_FILE_PATH** – Environment variable for storing path to sensor configuration file. This is an optional simulation environment variable that allows for setting up simulated sensor for a V2X-Hub instance. Example file can be found in the **CDASimAdapterPlugin** tests [here](../src/v2i-hub/CDASimAdapter/test/sensors.json). + +### Access V2X-Hub +To access V2X-Hub UI, either chromium or google-chrome browser can be used by running the following commands: +``` +chromium-browser --ignore-certificate-errors +``` +or + +``` +google-chrome --ignore-certificate-errors + ``` + +> [!NOTE] +> V2X-Hub Server uses a secure WebSocket connection to communicate with the browser. For this, V2X-Hub Server uses a self-signed certificate instead of one signed by a trusted certificate authority (CA). Most of the browsers do not trust this until explicitly told to do so by navigating to the WebSocket URL (https://:19760) and accepting the risk. The `--ignore-certificate-errors` option instructs the browser to ignore certificate errors and warnings which removes manual effort of accepting this risk on V2X-Hub deployments. **Using the browser with this option enabled to access the internet or any other application is not advised as it is a security risk**. \ No newline at end of file diff --git a/configuration/initialization.sh b/configuration/initialization.sh index e6dc5acf0..82b556ebb 100755 --- a/configuration/initialization.sh +++ b/configuration/initialization.sh @@ -148,5 +148,4 @@ fi cd "$mysqlDir" || return # return in case cd fails ./add_v2xhub_user.bash -chromium-browser "http://127.0.0.1" > /dev/null 2>&1 & -chromium-browser "https://127.0.0.1:19760" > /dev/null 2>&1 & +chromium-browser --ignore-certificate-errors localhost > /dev/null 2>&1 &