Google Chat: zj734465502@gmail.com
+86-0755-88291180
sales01@spotpear.com
dragon_manager@163.com
services01@spotpear.com
manager01@spotpear.com
WhatsApp:13246739196
If only access through the local machine (localhost), certificates can be omitted.
Examples are provided here for Node.js and Python.
NanoKVM-USB
directory in the previous step.npm install -g http-server
to install http-server
.http-server -p 8080 -a localhost
to run the service.NanoKVM-USB
directory in the previous step.python -m http.server 8080
to run the service.After the service is started, open the browser and visit http://localhost:8080
.
Note that you can only use the http
protocol, not the https
protocol.
If access is needed within the local area network, a certificate is required.
Examples are provided here for Node.js and Python. The difference from the above is that a certificate is required.
Make sure you have
openssl
installed.
NanoKVM-USB
directory in the previous step.openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem
.After completion, two files key.pem
and cert.pem
will be generated in the current directory.
npm install -g http-server
to install http-server
.http-server -p 8080 -S -C cert.pem -K key.pem
to run the service.Create a file server.py
in the NanoKVM-USB
directory, and save it with the following code:
Execute python server.py
to run the service。
Open the browser and enter the service address, such as https://127.0.0.1:8080
.
After opening the URL, you may be prompted with a "Privacy Error" and need to click to access manually:
If you need to access it on the public network, it is recommended to use
Nginx
.
Here is a simple configuration example. For detailed configuration methods, please refer to the Nginx
documentation.