admin: Generate Vouch-Proxy config

This commit is contained in:
nemunaire 2024-03-23 18:51:53 +01:00
parent 59af4103b8
commit 5974fe8cd4
2 changed files with 16 additions and 17 deletions

View file

@ -2396,12 +2396,11 @@ angular.module("FICApp")
}, function(response) {
$scope.addToast('danger', 'An error occurs when generating dex config:', response.data.errmsg);
});
$http.post("api/vouch.yaml").then(function() {
$http.post("api/vouch-proxy.yaml").then(function() {
$scope.addToast('success', 'VouchProxy config refreshed.', "Don't forget to reload/reboot frontend host.");
}, function(response) {
$scope.addToast('danger', 'An error occurs when generating VouchProxy config:', response.data.errmsg);
});
});
}
$scope.desactiveTeams = function() {
$http.post("api/disableinactiveteams").then(function() {