Add netcup to dns setup screen

This commit is contained in:
Johannes Zellner
2021-02-11 16:10:53 +01:00
parent 25e59adb2a
commit 1efcfc69f4
2 changed files with 23 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
'use strict';
/* global $, tld, angular */
/* global $, tld, angular, Clipboard */
// create main application module
var app = angular.module('Application', ['pascalprecht.translate', 'ngCookies', 'angular-md5', 'ui-notification', 'ui.bootstrap']);
@@ -88,6 +88,7 @@ app.controller('SetupDNSController', ['$scope', '$http', '$timeout', 'Client', f
{ name: 'Linode', value: 'linode' },
{ name: 'Name.com', value: 'namecom' },
{ name: 'Namecheap', value: 'namecheap' },
{ name: 'Netcup', value: 'netcup' },
{ name: 'Wildcard', value: 'wildcard' },
{ name: 'Manual (not recommended)', value: 'manual' },
{ name: 'No-op (only for development)', value: 'noop' }
@@ -110,6 +111,9 @@ app.controller('SetupDNSController', ['$scope', '$http', '$timeout', 'Client', f
nameComToken: '',
namecheapUsername: '',
namecheapApiKey: '',
netcupCustomerNumber: '',
netcupApiKey: '',
netcupApiPassword: '',
provider: 'route53',
zoneName: '',
tlsConfig: {
@@ -193,6 +197,10 @@ app.controller('SetupDNSController', ['$scope', '$http', '$timeout', 'Client', f
} else if (provider === 'namecheap') {
config.token = $scope.dnsCredentials.namecheapApiKey;
config.username = $scope.dnsCredentials.namecheapUsername;
} else if (provider === 'netcup') {
config.customerNumber = $scope.dnsCredentials.netcupCustomerNumber;
config.apiKey = $scope.dnsCredentials.netcupApiKey;
config.apiPassword = $scope.dnsCredentials.netcupApiPassword;
}
var tlsConfig = {