ante-erp-cli 1.8.3 → 1.8.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/utils/ssl.js +18 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ante-erp-cli",
3
- "version": "1.8.3",
3
+ "version": "1.8.4",
4
4
  "description": "Comprehensive CLI tool for managing ANTE ERP self-hosted installations",
5
5
  "type": "module",
6
6
  "bin": {
package/src/utils/ssl.js CHANGED
@@ -124,12 +124,25 @@ export async function obtainSSLCertificate(config) {
124
124
  * @param {Object} config - Configuration object
125
125
  * @param {string} config.frontendDomain - Frontend domain URL
126
126
  * @param {string} config.apiDomain - API domain URL
127
+ * @param {string} [config.gateAppDomain] - Gate App domain URL (optional)
128
+ * @param {string} [config.guardianAppDomain] - Guardian App domain URL (optional)
127
129
  * @param {number} [config.frontendPort=8080] - Frontend port
128
130
  * @param {number} [config.apiPort=3001] - API port
131
+ * @param {number} [config.gateAppPort=8081] - Gate App port
132
+ * @param {number} [config.guardianAppPort=8082] - Guardian App port
129
133
  * @returns {Promise<void>}
130
134
  */
131
135
  export async function updateNginxForSSL(config) {
132
- const { frontendDomain, apiDomain, frontendPort = 8080, apiPort = 3001 } = config;
136
+ const {
137
+ frontendDomain,
138
+ apiDomain,
139
+ gateAppDomain,
140
+ guardianAppDomain,
141
+ frontendPort = 8080,
142
+ apiPort = 3001,
143
+ gateAppPort = 8081,
144
+ guardianAppPort = 8082
145
+ } = config;
133
146
  const spinner = ora('Updating NGINX configuration for HTTPS...').start();
134
147
 
135
148
  try {
@@ -151,8 +164,12 @@ export async function updateNginxForSSL(config) {
151
164
  const sslConfig = generateNginxConfig({
152
165
  frontendDomain,
153
166
  apiDomain,
167
+ gateAppDomain,
168
+ guardianAppDomain,
154
169
  frontendPort,
155
170
  apiPort,
171
+ gateAppPort,
172
+ guardianAppPort,
156
173
  ssl: true
157
174
  });
158
175