add simple admin service
Build and deploy / deploy (push) Successful in 16s

This commit is contained in:
2026-05-18 02:48:47 +03:00
parent 10a83d39a2
commit 3a3b2bcfc0
84 changed files with 2134 additions and 5 deletions
+4
View File
@@ -0,0 +1,4 @@
export const requestLimits = {
maxBodySize: 30 * 1024 * 1024,
maxUploadSize: 20 * 1024 * 1024,
};
+13
View File
@@ -0,0 +1,13 @@
import { dirname, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
const adminRoot = resolve(dirname(fileURLToPath(import.meta.url)), '..', '..');
const repoRoot = resolve(adminRoot, '..');
const webRoot = resolve(repoRoot, 'web');
export const paths = {
adminPublicRoot: resolve(adminRoot, 'public'),
articlesFile: resolve(webRoot, 'data', 'articles.json'),
uploadRoot: resolve(webRoot, 'public', 'assets', 'uploads'),
webPublicRoot: resolve(webRoot, 'public'),
};
+4
View File
@@ -0,0 +1,4 @@
export const serverConfig = {
host: process.env.ADMIN_HOST || '127.0.0.1',
port: Number(process.env.ADMIN_PORT || 3333),
};