https://github.com/perry-mitchell/server-profile
Server identity profile manager.
https://github.com/perry-mitchell/server-profile
Last synced: 11 months ago
JSON representation
Server identity profile manager.
- Host: GitHub
- URL: https://github.com/perry-mitchell/server-profile
- Owner: perry-mitchell
- License: mit
- Created: 2015-07-16T12:52:54.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-16T21:39:48.000Z (almost 11 years ago)
- Last Synced: 2025-06-14T11:05:08.816Z (about 1 year ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Server Profile
A nodejs profile generator and manager for servers.
## About
server-profile generates a _fingerprint_ of the machine it's running on, and saves it to disk. Each subsequent request for the profile will load the previously written profile. The IP address (external) stored is updated upon each load.
### Fingerprint data
The structure of the fingerprint:
```
{
"name": "Name of the server (unique, generated)",
"id": "sha256 hash of some of the fingerprint data",
"mac": "Mac address of the machine",
"extIP": "External IP address"
}
```
## Usage
To fetch a profile:
```
require("server-profile").fetchProfile().then(function(profile) {
console.log("I am " + profile.getName()); // I am wary-rabbits
});
```
Or by specifying a profile path:
```
require("server-profile")
.setPath("/home/ubuntu")
.setName(".svrp")
.fetchProfile()
.then(function(profile) {});
```