From a7bf18939ce40ff766cf772419821e0c9215e85e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Sun, 31 May 2026 18:59:43 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D1=81=D1=82=D1=80=D1=83=D0=BA=D1=82?= =?UTF-8?q?=D1=83=D1=80=D0=B0=20=D0=BA=D0=B0=D0=BA=20=D0=B2=20ipwhitelist?= =?UTF-8?q?=20=E2=80=94=20=D0=B1=D0=B5=D0=B7=20Dockerfile,=20server.js,=20?= =?UTF-8?q?public/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 11 ----------- package.json | 4 ++-- {static => public}/favicon.png | Bin {static => public}/nubes-logo.svg | 0 {static => public}/style.css | 0 index.js => server.js | 0 src/app.js | 4 ++-- templates/index.html | 6 +++--- 8 files changed, 7 insertions(+), 18 deletions(-) delete mode 100644 Dockerfile rename {static => public}/favicon.png (100%) rename {static => public}/nubes-logo.svg (100%) rename {static => public}/style.css (100%) rename index.js => server.js (100%) diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index c97ce49..0000000 --- a/Dockerfile +++ /dev/null @@ -1,11 +0,0 @@ -FROM node:23-alpine - -WORKDIR /app - -COPY package.json . -RUN npm install --production - -COPY . . - -EXPOSE 3000 -CMD ["node", "index.js"] diff --git a/package.json b/package.json index ec035cb..24086b8 100644 --- a/package.json +++ b/package.json @@ -2,9 +2,9 @@ "name": "say", "version": "1.0.0", "description": "Say — голосовой ассистент Whisper + LLM", - "main": "index.js", + "main": "server.js", "scripts": { - "start": "node index.js" + "start": "node server.js" }, "dependencies": { "express": "^4.21.0", diff --git a/static/favicon.png b/public/favicon.png similarity index 100% rename from static/favicon.png rename to public/favicon.png diff --git a/static/nubes-logo.svg b/public/nubes-logo.svg similarity index 100% rename from static/nubes-logo.svg rename to public/nubes-logo.svg diff --git a/static/style.css b/public/style.css similarity index 100% rename from static/style.css rename to public/style.css diff --git a/index.js b/server.js similarity index 100% rename from index.js rename to server.js diff --git a/src/app.js b/src/app.js index adf92ab..8c60968 100644 --- a/src/app.js +++ b/src/app.js @@ -13,8 +13,8 @@ const errorHandler = require('./middleware/errorHandler'); function createApp() { const app = express(); - // --- Статика (CSS, лого, favicon) --- - app.use('/static', express.static(path.join(__dirname, '..', 'static'))); + // --- Статика (CSS, лого, favicon) — как в ipwhitelist: public/ → / --- + app.use(express.static(path.join(__dirname, '..', 'public'))); // --- Роуты --- app.use('/', pagesRouter); diff --git a/templates/index.html b/templates/index.html index ffb940c..8412588 100644 --- a/templates/index.html +++ b/templates/index.html @@ -4,8 +4,8 @@ Say — Голосовой ассистент | Nubes - - + + @@ -15,7 +15,7 @@
| Say — Голосовой ассистент