Instance details in json directly on instance
This document provides guidance on how to access and interpret the configuration details of a rented instance. It includes information on instance configuration, port mapping, and secure connection details through Cloudflare tunnels.
Instance Configuration
To view the details of your rented instance, you can access a special directory that contains the instance configuration and port mapping information. The configuration file can be found at the following path:
cat /etc/simplepod/instance.json
The content of the instance configuration file is structured in JSON format and includes the following key details:
{
"ipWan": "88.34.6.4",
"hashId": "rri_ap3hHP7ybAgZI5s6",
"gpuCount": "1",
"systemMemory": "131072",
"cpuCoreCount": "32",
"diskSize": "61",
"image": {
"imageName": "ubuntu",
"tag": "24.10",
"exposePorts": "",
"envVariables": "[]",
"argOptions": "",
"startScript": "sudo apt-get update\\nsudo apt-get install mc htop atop -y",
"host": "api.simplemining.net",
"username": "",
"password": "",
"isPasswordProtected": "0",
"isRunSshServerOn": "1",
"isRunJupyterOn": "1"
},
"portMap": {
"20600": {
"service": "console",
"destPort": "0"
},
"20601": {
"service": "ssh",
"destPort": "22"
},
"20602": {
"service": "jupyter",
"destPort": "8888"
}
}
}
Port Mapping
The port mapping section of the configuration provides information on the services running on specific ports that are seen from internet. The following services are available:
In this case, SSH that starts on port 22 inside instance but it is mapped to has external port 20601. If You want to connect to ssh from internet then use ipWan 88.34.6.4 and port 20601 .
Secure Connection Information
In addition to the instance configuration, there is an additional JSON file that contains secure connection information related to the Cloudflare tunnel that gives green secure connection to Your http/https services. This file can be accessed using the following command:
cat /etc/simplepod/mapPortCfUser.json
The content of the secure connection information file is as follows:
{
"20600": {
"protocol": "http",
"proxyProtocol": "https",
"proxyUrl": "https://massage-yen-packet-amateur.trycloudflare.com",
"service": "console"
},
"20601": {
"protocol": "unknown",
"proxyProtocol": "checking",
"proxyUrl": "checking",
"service": "ssh"
},
"20602": {
"protocol": "https",
"proxyProtocol": "https",
"proxyUrl": "https://nevertheless-kerry-yrs-heavily.trycloudflare.com",
"service": "jupyter"
}
}
This information is crucial for establishing secure connections to your services through the Cloudflare tunnel.