Always generate nginx config for webadmin

Part of #406
This commit is contained in:
Girish Ramakrishnan
2017-08-28 21:00:29 -07:00
parent 61f7c1af48
commit f9706d6a05
2 changed files with 22 additions and 12 deletions

View File

@@ -103,7 +103,9 @@ app.controller('SetupDNSController', ['$scope', '$http', 'Client', function ($sc
$scope.busy = true;
Client.getStatus(function (error, status) {
if (!error && status.adminFqdn && status.webadminStatus.dns && status.webadminStatus.tls) {
// webadminStatus.dns is intentionally not tested. it can be false if dns creds are invalid
// runConfigurationChecks() in main.js will pick the .dns and show a notification
if (!error && status.adminFqdn && status.webadminStatus.tls) {
window.location.href = 'https://' + status.adminFqdn + '/setup.html';
}