ante-erp-cli 1.11.39 ā 1.11.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/commands/set-domain.js +3 -2
- package/src/utils/ssl.js +7 -1
package/package.json
CHANGED
|
@@ -766,11 +766,12 @@ export async function setDomain(options) {
|
|
|
766
766
|
|
|
767
767
|
if (isHttps && isDomainName && needsNginx) {
|
|
768
768
|
// SSL setup workflow
|
|
769
|
-
|
|
769
|
+
// Note: --ssl flag maps to options.enableSsl due to Commander.js option syntax
|
|
770
|
+
let enableSsl = options.ssl || options.enableSsl || false;
|
|
770
771
|
let sslEmail = options.email || '';
|
|
771
772
|
|
|
772
773
|
// If not specified via flags, ask in interactive mode
|
|
773
|
-
if (options.interactive !== false && !options.ssl) {
|
|
774
|
+
if (options.interactive !== false && !options.ssl && !options.enableSsl) {
|
|
774
775
|
console.log(chalk.cyan('\nš SSL/HTTPS Configuration\n'));
|
|
775
776
|
console.log(chalk.gray('You\'re using HTTPS URLs. Would you like to obtain SSL certificates now?\n'));
|
|
776
777
|
console.log(chalk.gray('This will:'));
|
package/src/utils/ssl.js
CHANGED
|
@@ -128,12 +128,14 @@ export async function obtainSSLCertificate(config) {
|
|
|
128
128
|
* @param {string} [config.guardianAppDomain] - Guardian App domain URL (optional)
|
|
129
129
|
* @param {string} [config.facialAppDomain] - Facial Web domain URL (optional)
|
|
130
130
|
* @param {string} [config.posAppDomain] - POS App domain URL (optional)
|
|
131
|
+
* @param {string} [config.clientAppDomain] - Client App domain URL (optional)
|
|
131
132
|
* @param {number} [config.frontendPort=8080] - Frontend port
|
|
132
133
|
* @param {number} [config.apiPort=3001] - API port
|
|
133
134
|
* @param {number} [config.gateAppPort=8081] - Gate App port
|
|
134
135
|
* @param {number} [config.guardianAppPort=8082] - Guardian App port
|
|
135
136
|
* @param {number} [config.facialWebPort=8083] - Facial Web port
|
|
136
137
|
* @param {number} [config.posAppPort=8084] - POS App port
|
|
138
|
+
* @param {number} [config.clientAppPort=9005] - Client App port
|
|
137
139
|
* @returns {Promise<void>}
|
|
138
140
|
*/
|
|
139
141
|
export async function updateNginxForSSL(config) {
|
|
@@ -144,12 +146,14 @@ export async function updateNginxForSSL(config) {
|
|
|
144
146
|
guardianAppDomain,
|
|
145
147
|
facialAppDomain,
|
|
146
148
|
posAppDomain,
|
|
149
|
+
clientAppDomain,
|
|
147
150
|
frontendPort = 8080,
|
|
148
151
|
apiPort = 3001,
|
|
149
152
|
gateAppPort = 8081,
|
|
150
153
|
guardianAppPort = 8082,
|
|
151
154
|
facialWebPort = 8083,
|
|
152
|
-
posAppPort = 8084
|
|
155
|
+
posAppPort = 8084,
|
|
156
|
+
clientAppPort = 9005
|
|
153
157
|
} = config;
|
|
154
158
|
const spinner = ora('Updating NGINX configuration for HTTPS...').start();
|
|
155
159
|
|
|
@@ -176,12 +180,14 @@ export async function updateNginxForSSL(config) {
|
|
|
176
180
|
guardianAppDomain,
|
|
177
181
|
facialAppDomain,
|
|
178
182
|
posAppDomain,
|
|
183
|
+
clientAppDomain,
|
|
179
184
|
frontendPort,
|
|
180
185
|
apiPort,
|
|
181
186
|
gateAppPort,
|
|
182
187
|
guardianAppPort,
|
|
183
188
|
facialWebPort,
|
|
184
189
|
posAppPort,
|
|
190
|
+
clientAppPort,
|
|
185
191
|
ssl: true
|
|
186
192
|
});
|
|
187
193
|
|