ante-erp-cli 1.11.9 → 1.11.10
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 +5 -0
- package/src/utils/ssl.js +7 -1
package/package.json
CHANGED
|
@@ -693,6 +693,11 @@ export async function setDomain(options) {
|
|
|
693
693
|
sslNginxConfig.facialWebPort = 8083;
|
|
694
694
|
}
|
|
695
695
|
|
|
696
|
+
if (hasPosApp && posAppUrl) {
|
|
697
|
+
sslNginxConfig.posAppDomain = posAppUrl;
|
|
698
|
+
sslNginxConfig.posAppPort = 8084;
|
|
699
|
+
}
|
|
700
|
+
|
|
696
701
|
await updateNginxForSSL(sslNginxConfig);
|
|
697
702
|
|
|
698
703
|
// Step 3: Setup auto-renewal
|
package/src/utils/ssl.js
CHANGED
|
@@ -127,11 +127,13 @@ export async function obtainSSLCertificate(config) {
|
|
|
127
127
|
* @param {string} [config.gateAppDomain] - Gate App domain URL (optional)
|
|
128
128
|
* @param {string} [config.guardianAppDomain] - Guardian App domain URL (optional)
|
|
129
129
|
* @param {string} [config.facialAppDomain] - Facial Web domain URL (optional)
|
|
130
|
+
* @param {string} [config.posAppDomain] - POS App domain URL (optional)
|
|
130
131
|
* @param {number} [config.frontendPort=8080] - Frontend port
|
|
131
132
|
* @param {number} [config.apiPort=3001] - API port
|
|
132
133
|
* @param {number} [config.gateAppPort=8081] - Gate App port
|
|
133
134
|
* @param {number} [config.guardianAppPort=8082] - Guardian App port
|
|
134
135
|
* @param {number} [config.facialWebPort=8083] - Facial Web port
|
|
136
|
+
* @param {number} [config.posAppPort=8084] - POS App port
|
|
135
137
|
* @returns {Promise<void>}
|
|
136
138
|
*/
|
|
137
139
|
export async function updateNginxForSSL(config) {
|
|
@@ -141,11 +143,13 @@ export async function updateNginxForSSL(config) {
|
|
|
141
143
|
gateAppDomain,
|
|
142
144
|
guardianAppDomain,
|
|
143
145
|
facialAppDomain,
|
|
146
|
+
posAppDomain,
|
|
144
147
|
frontendPort = 8080,
|
|
145
148
|
apiPort = 3001,
|
|
146
149
|
gateAppPort = 8081,
|
|
147
150
|
guardianAppPort = 8082,
|
|
148
|
-
facialWebPort = 8083
|
|
151
|
+
facialWebPort = 8083,
|
|
152
|
+
posAppPort = 8084
|
|
149
153
|
} = config;
|
|
150
154
|
const spinner = ora('Updating NGINX configuration for HTTPS...').start();
|
|
151
155
|
|
|
@@ -171,11 +175,13 @@ export async function updateNginxForSSL(config) {
|
|
|
171
175
|
gateAppDomain,
|
|
172
176
|
guardianAppDomain,
|
|
173
177
|
facialAppDomain,
|
|
178
|
+
posAppDomain,
|
|
174
179
|
frontendPort,
|
|
175
180
|
apiPort,
|
|
176
181
|
gateAppPort,
|
|
177
182
|
guardianAppPort,
|
|
178
183
|
facialWebPort,
|
|
184
|
+
posAppPort,
|
|
179
185
|
ssl: true
|
|
180
186
|
});
|
|
181
187
|
|