OpenVPN-API is a set of pure posix-compatible shell scripts which provides management of client configs and certificates via CGI interface. Development is currently in alpha-stage
server {
listen 8080 default_server;
root /var/www/openvpn-api/webroot;
index index.html;
location ~* ^(.+\.cgi)($|\/.*) {
try_files $1 =404;
scgi_pass unix:/run/scgid/sock;
scgi_param SCRIPT_FILENAME /var/www/openvpn-api/webroot$1;
scgi_param PATH_INFO $2;
include scgi_params;
}
}
host=0.0.0.0
port=80
user=www-data
nochroot
data_dir=/var/www/openvpn-api/webroot
cgipat=**.cgi
charset=utf-8