pass env=dev as search param to set the tlsConfig
This commit is contained in:
@@ -685,13 +685,14 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
|
||||
}).error(defaultErrorHandler(callback));
|
||||
};
|
||||
|
||||
Client.prototype.setupDnsConfig = function (domain, zoneName, provider, dnsConfig, callback) {
|
||||
Client.prototype.setupDnsConfig = function (domain, zoneName, provider, dnsConfig, tlsConfig, callback) {
|
||||
var data = {
|
||||
domain: domain,
|
||||
adminFqdn: 'my.' + domain,
|
||||
zoneName: zoneName,
|
||||
provider: provider,
|
||||
config: dnsConfig
|
||||
config: dnsConfig,
|
||||
tlsConfig: tlsConfig
|
||||
};
|
||||
|
||||
post('/api/v1/cloudron/dns_setup', data).success(function(data, status) {
|
||||
@@ -1129,11 +1130,12 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
|
||||
}).error(defaultErrorHandler(callback)); // this doesn't call defaultErrorHandler till we fix domains code to use this directly
|
||||
};
|
||||
|
||||
Client.prototype.addDomain = function (domain, provider, config, fallbackCertificate, callback) {
|
||||
Client.prototype.addDomain = function (domain, provider, config, fallbackCertificate, tlsConfig, callback) {
|
||||
var data = {
|
||||
domain: domain,
|
||||
provider: provider,
|
||||
config: config
|
||||
config: config,
|
||||
tlsConfig: tlsConfig
|
||||
};
|
||||
var that = this;
|
||||
|
||||
@@ -1147,10 +1149,11 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
|
||||
}).error(defaultErrorHandler(callback));
|
||||
};
|
||||
|
||||
Client.prototype.updateDomain = function (domain, provider, config, fallbackCertificate, callback) {
|
||||
Client.prototype.updateDomain = function (domain, provider, config, fallbackCertificate, tlsConfig, callback) {
|
||||
var data = {
|
||||
provider: provider,
|
||||
config: config
|
||||
config: config,
|
||||
tlsConfig: tlsConfig
|
||||
};
|
||||
|
||||
if (fallbackCertificate) data.fallbackCertificate = fallbackCertificate;
|
||||
|
||||
Reference in New Issue
Block a user