|
|
|
|
@ -3,7 +3,7 @@ use Mojo::Base 'Mojolicious::Controller', -signatures; |
|
|
|
|
use Try::Tiny; |
|
|
|
|
|
|
|
|
|
sub index ( $c ) { |
|
|
|
|
|
|
|
|
|
$c->redirect_to( 'show_admin_people' ); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
# POST /admin |
|
|
|
|
@ -198,6 +198,17 @@ sub do_update_ssl ( $c ) { |
|
|
|
|
$c->redirect_to( $c->url_for( 'show_admin_jobs' ) ); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
sub do_sync_ssl ( $c ) { |
|
|
|
|
my $id = $c->minion->enqueue( 'sync_ssl_certs', [ ], { |
|
|
|
|
queue => 'certbot', |
|
|
|
|
notes => { '_bid_0' => 1 }, |
|
|
|
|
}); |
|
|
|
|
$c->db->admin_jobs->create({ minion_job_id => $id }); |
|
|
|
|
|
|
|
|
|
$c->flash( confirmation => "Scheduled job to sync SSL certs." ); |
|
|
|
|
$c->redirect_to( $c->url_for( 'show_admin_jobs' ) ); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
sub do_alert_read ( $c ) { |
|
|
|
|
my $note = $c->db->system_note( $c->param('nid') ); |
|
|
|
|
|
|
|
|
|
|