Use git clone and run the binary as a service
git clone git@framagit.org:vspg/vspg_core.git
Requirements
- Python 3.x
- Pip
- bottle
- paste
- requests
- urllib3
- hashlib
- secrets
Configure VSPG
You can set the listening interface and the port in the vspg.conf file.
{
"http": {
"host": "0.0.0.0",
"port": "8443"
}
}
Start once
python vspg-api.py
Start as a service (SystemD)
Create a file named vspg.service with this content (Change the $WORKINGDIR by the path of VSPG installation) :
[Unit]
Description=Very Simple Password Generator Service Web
After=multi-user.target
[Service]
Type=idle
WorkingDirectory=$WORKINGDIR
ExecStart=/usr/bin/python $WORKINGDIR/vspg-api.py
[Install]
WantedBy=multi-user.target
copie service file
sudo cp vspg.service /etc/systemd/system
enable the service
sudo systemctl enable vspg.service
start the service
sudo systemctl start vspg.service