Introduction
This article is step-by-step guide to create HOOPS Communicator SC server with HTTPS (SSL) server.
If you haven’t created HTTPS server, please refer this article: How to setup HTTPS server with AWS
Instruction
HOOPS Communicator server installation
Place the folders and files required for the HC server from the SDK.
Here is an illustration of how to configure the server:
+ var
+ www
+ html
+ src
+ server
+ 3rd_party
+ sc_models
-
Transfer the
tar.gz
file of HOOPS Communicator for Linux to the/tmp
folder of the virtual server via SCP -
Extract the
tar.gz
file
cd /tmp
tar -zxvf HOOPS_Communicator_202x_SPx_Linux.tar.gz
- Allocate the necessary folders in a root folder of nginx
cd HOOPS_Communicator_202x_SPx/
sudo cp -r 3rd_party/ server/ /var/www/
sudo cp -r quick_start/converted_models/standard/sc_models/ /var/www/
sudo cp -r web_viewer/src /var/www/html/
HOOPS Communicator server setup
- Open
Config.js
for HOOPS Communicator Stream Cache Server
sudo vi /var/www/server/node/Config.js
- Set SSL settings
...
publicHostname: "YOUR_DOMAIN_NAME",
...
sslCertificateFile: "/etc/letsencrypt/live/YOUR_DOMAIN_NAME/fullchain.pem",
...
sslPrivateKeyFile: "/etc/letsencrypt/live/YOUR_DOMAIN_NAME/privkey.pem",
...
sslEnableFileServer: false,
...
sslEnableSpawnServer: true,
...
sslEnableScServer: false,
Note that set false
to sslEnableScServer
if you use Proxy Connection of SC server.
- Set model search directory
modelDirs: [
"./sc_models",
],
- Save and quit:
:wq
Start the HOOPS Communicator server
-
Edit the inbound rules of the virtual server to open port 11182
-
Start the HOOPS Communicator server
sudo sh /var/www/server/node/start_server.sh
- Open
https://YOUR_DOMAIN_NAME/src/hoops_web_viewer_sample.html?wsPort=11182&instance=microengine
Error message will appear
Error fixing
- Stop the HOOPS Communicator Server by pressing the
Enter
key on the SSH - Show log file list of the server
ls -al ~/ts3d_communicator_logs/
- Verify the latest log file
cat ~/ts3d_communicator_logs/comm_scserver_csr_2023_02_...
- Since the Cart expects to find your certificate in
/etc/pki/tls/certs/ca-bundle.crt
, it is stored in/etc/ssl/certs/ca-certificates.crt
You can fix this error by adding a symlink to the expected path
mkdir -p /etc/pki/tls/certs
ln -s /etc/ssl/certs/ca-certificates.crt /etc/pki/tls/certs/ca-bundle.crt
- Start the HOOPS Communicator server and reload the page
3D model appears using SSL