chore: selaraskan default server_port=3001 (Docker/healthcheck/wiki)

This commit is contained in:
oxpoe committed 2026-10-13 03:49:47 +07:00
1 parent a68121544d
commit fed81ed5f9
3 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -1107,7 +1107,7 @@ app.post('/api/webhook/v1/payment-notif', multer().any(), async (req, res) => {
// Variabel global untuk modul lain yang masih membaca konfigurasi (mis. skrip utilitas)
global.appSettings = {
port: getSetting('server_port', 4555),
port: getSetting('server_port', 3001),
host: getSetting('server_host', 'localhost'),
genieacsUrl: getSetting('genieacs_url', 'http://localhost:7557'),
genieacsUsername: getSetting('genieacs_username', ''),
+1 -1
View File
@@ -99,7 +99,7 @@ function startSettingsWatcher() {
try {
const s = getSettingsWithCache();
const port = s.server_port ?? 4555;
const port = s.server_port ?? 3001;
const host = s.server_host || 'localhost';
const gurl = s.genieacs_url || '(tidak diatur)';
const company = s.company_header || '(default)';
+3 -3
View File
@@ -1555,13 +1555,13 @@ async function generateIsolirPortalScript() {
let port = 443;
let isHttps = true;
try {
const u = new URL(normalized || 'http://127.0.0.1:4555');
const u = new URL(normalized || 'http://127.0.0.1:3001');
hostname = u.hostname;
port = u.port ? parseInt(u.port, 10) : (u.protocol === 'https:' ? 443 : 80);
isHttps = u.protocol === 'https:';
} catch {
hostname = 'GANTI-host-portal-billing';
port = 4555;
port = 3001;
isHttps = false;
}
@@ -1724,7 +1724,7 @@ async function setupIsolirFirewall(routerId = null) {
try {
const raw = String(settings.app_url || '').trim();
const normalized = raw && /^https?:\/\//i.test(raw) ? raw : (raw ? `https://${raw}` : '');
const u = new URL(normalized || 'http://127.0.0.1:4555');
const u = new URL(normalized || 'http://127.0.0.1:3001');
const isHttps = u.protocol === 'https:';
const port = u.port ? parseInt(u.port, 10) : (isHttps ? 443 : 80);
httpNatPort = isHttps ? 80 : port;