From 7987b0ab3f020546eaaeccf6e6f4559f904a0dbc Mon Sep 17 00:00:00 2001 From: Accel Date: Tue, 5 Aug 2025 20:54:18 +0700 Subject: [PATCH 1/2] Update db.js --- database/db.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/db.js b/database/db.js index 1282ae9..e3d7777 100644 --- a/database/db.js +++ b/database/db.js @@ -3,9 +3,9 @@ var __path = process.cwd(), { color } = require(__path + '/lib/color.js') // Connection URL -var url = 'https://api.sekha.me'; +var url = 'https://api-accel.zone.id/'; try { -if(url == 'https://api.sekha.me') throw console.log(color('Cek konfigurasi database, var url belum diisi','red')); +if(url == 'https://api-accel.zone.id/') throw console.log(color('Cek konfigurasi database, var url belum diisi','red')); } catch (e) { return; } From 1bb4abaa577dba1e9a062db275a7b45b2c7ad0ff Mon Sep 17 00:00:00 2001 From: Accel Date: Tue, 5 Aug 2025 20:59:58 +0700 Subject: [PATCH 2/2] Update Dockerfile --- Dockerfile | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5692da3..c2e9652 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,20 @@ +# Gunakan versi terbaru LTS (saat ini Node.js 20.x) +FROM node:20 -FROM node:16.15.0 -FROM node:18.2.0 -RUN apt-get update -RUN apt-get upgrade -y -RUN apt-get install nodejs -y +# Update dan upgrade dependencies OS (opsional tapi bersih) +RUN apt-get update && apt-get upgrade -y +# Set working directory WORKDIR /app -COPY . /app + +# Salin semua file ke container +COPY . . + +# Install dependencies RUN npm install + +# Jalankan aplikasi CMD ["node", "index.js"] + +# Port yang digunakan aplikasi EXPOSE 6892