Merge branch 'master' of github.com:EaterOfCode/zer.ooo
This commit is contained in:
commit
10aa559703
3 changed files with 12 additions and 6 deletions
|
@ -1,10 +1,12 @@
|
||||||
# Zer.ooo
|
# Zer.ooo
|
||||||
|
|
||||||
The open-source OpenVPN manager.
|
The open-source OpenVPN manager, or VaaS: VPN as a Service.
|
||||||
|
|
||||||
## What is it?
|
## What is it?
|
||||||
|
|
||||||
Zer.ooo is made to simplify the managing of your OpenVPN servers and certificates. automating the CA and server provisioning.
|
Zer.ooo aims to simplify the management of your OpenVPN servers and certificates. It allows you to easily create new certificates and it automates a large part of the CA and the server provisioning process.
|
||||||
|
|
||||||
|
## How do I use it?
|
||||||
|
|
||||||
|
If you have an invite code, feel free to register at [zer.ooo](https://zer.ooo). You can also set up zer.ooo on your own server (a how-to should follow shortly).
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,7 @@ routes:
|
||||||
post: Register\Action
|
post: Register\Action
|
||||||
/logout: Logout
|
/logout: Logout
|
||||||
/ca: CA
|
/ca: CA
|
||||||
|
/crl: CRL
|
||||||
/panel:
|
/panel:
|
||||||
get: Panel
|
get: Panel
|
||||||
/certificates:
|
/certificates:
|
||||||
|
|
|
@ -4,23 +4,26 @@ $(function(){
|
||||||
var selected = false;
|
var selected = false;
|
||||||
|
|
||||||
$('.revoke').click(function () {
|
$('.revoke').click(function () {
|
||||||
selected = $(this).data('name');
|
selected = $(this);
|
||||||
|
|
||||||
$('.revoke-modal').modal('show');
|
$('.revoke-modal').modal('show');
|
||||||
|
error.hide();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.revoke-confirm').click(function () {
|
$('.revoke-confirm').click(function () {
|
||||||
var selectedSnapshot = selected;
|
var selectedSnapshot = selected;
|
||||||
|
error.hide();
|
||||||
|
|
||||||
$.post('/panel/certificates/revoke', {
|
$.post('/panel/certificates/revoke', {
|
||||||
name: selectedSnapshot,
|
name: selectedSnapshot.data('name'),
|
||||||
password: $('.revoke-password').val()
|
password: $('.revoke-password').val()
|
||||||
}, function(data) {
|
}, function(data) {
|
||||||
if (data.success) {
|
if (data.success) {
|
||||||
$('#certificates').after(success.text("Successfully revoked '" + selectedSnapshot + "'"));
|
$('#certificates').after(success.text("Successfully revoked '" + selectedSnapshot.data('name') + "'").delay(3000).hide(0));
|
||||||
$('.revoke-modal').modal('hide');
|
$('.revoke-modal').modal('hide');
|
||||||
|
$(selectedSnapshot).parents('tr').first().remove();
|
||||||
} else {
|
} else {
|
||||||
$('#revoke-put-error-after-me').after(error.text(data.error));
|
$('#revoke-put-error-after-me').after(error.text(data.error).show());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue