copy/paste error

(cherry picked from commit 53fed09a5d)
This commit is contained in:
Girish Ramakrishnan
2018-09-26 22:21:50 -07:00
parent dfa4e20a8f
commit f68912b466

View File

@@ -35,16 +35,6 @@ app.controller('SetupDNSController', ['$scope', '$http', '$timeout', 'Client', f
(tlsProvider === 'letsencrypt-prod' || tlsProvider === 'letsencrypt-staging'));
};
$scope.setDefaultTlsProvider = function () {
var dnsProvider = $scope.domainConfigure.provider;
// wildcard LE won't work without automated DNS
if ((dnsProvider === 'manual' || dnsProvider === 'noop' || dnsProvider === 'wildcard')) {
$scope.domainConfigure.tlsProvider.provider = 'letsencrypt-prod';
} else {
$scope.domainConfigure.tlsProvider.provider = 'letsencrypt-prod-wildcard';
}
};
// If we migrate the api origin we have to poll the new location
if (search.admin_fqdn) Client.apiOrigin = 'https://' + search.admin_fqdn;
@@ -98,6 +88,17 @@ app.controller('SetupDNSController', ['$scope', '$http', '$timeout', 'Client', f
hyphenatedSubdomains: false
};
$scope.setDefaultTlsProvider = function () {
var dnsProvider = $scope.dnsCredentials.provider;
// wildcard LE won't work without automated DNS
if (dnsProvider === 'manual' || dnsProvider === 'noop' || dnsProvider === 'wildcard') {
$scope.dnsCredentials.tlsConfig.provider = 'letsencrypt-prod';
} else {
$scope.dnsCredentials.tlsConfig.provider = 'letsencrypt-prod-wildcard';
}
};
function readFileLocally(obj, file, fileName) {
return function (event) {
$scope.$apply(function () {