feat: update Docker configuration and .gitignore, remove unused JSON files

This commit is contained in:
an14051
2026-05-13 00:14:08 +02:00
parent 33e339bde6
commit af0d8b3458
8 changed files with 28 additions and 29 deletions
+22
View File
@@ -40,4 +40,26 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts
# build artifacts
/dist/
/build/
/.next/
/frontend/.turbo/
# bun
.bun/
bunfig.toml.local
# cache & logs
.turbo/
*.log
lerna-debug.log*
# user data & uploads
/frontend/data/uploads/
/frontend/data/*.db
/frontend/data/*.db-shm
/frontend/data/*.db-wal
/frontend/data/*.migrated
/data/uploads/
+2 -1
View File
@@ -25,7 +25,8 @@ ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1
# Dedicated non-root user
RUN addgroup --system --gid 1001 nodejs && \
RUN apt-get update && apt-get install -y --no-install-recommends adduser && rm -rf /var/lib/apt/lists/* && \
addgroup --system --gid 1001 nodejs && \
adduser --system --uid 1001 nextjs
# Next.js standalone output
+1 -1
View File
@@ -5,7 +5,7 @@
set -euo pipefail
REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
TAG="${1:-backerup-website:latest}"
TAG="${1:-gitea.doomlabs.de/kptltd00m/backerup-website:latest}"
echo "==> Building image: $TAG"
docker build \
+1 -1
View File
@@ -5,7 +5,7 @@
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
TAG="${1:-backerup-website:latest}"
TAG="${1:-gitea.doomlabs.de/kptltd00m/backerup-website:latest}"
# 1. Build
"$SCRIPT_DIR/build.sh" "$TAG"
+1 -1
View File
@@ -1,6 +1,6 @@
services:
backerup-website:
image: backerup-website:latest
image: gitea.doomlabs.de/kptltd00m/backerup-website:latest
container_name: backerup-website
restart: unless-stopped
ports:
-14
View File
@@ -1,14 +0,0 @@
[
{
"token": "-jB8pMdeKu",
"originalName": "liquidity-db.config.json",
"displayName": "DB",
"size": 5606,
"type": "config",
"uploadedAt": "2026-05-11T21:18:55.259Z",
"description": "Skibidi Ligma",
"group": "production",
"containerName": "liquidity-db",
"image": "postgres:16-alpine"
}
]
-10
View File
@@ -1,10 +0,0 @@
[
{
"id": "00c94c52-f312-4152-a6ee-e3ce0b23b5f8",
"username": "admin",
"passwordHash": "827c32b2234fc18911ec8579ad6863df63b8cc3835b1f3a3f04016dfcd46f22e609cc3c99d5e09959ff8f2787f4169206ad5a9ca83beec2e70c14f8cca110cc8",
"salt": "c2030b38b34b2810f715453350100729",
"role": "admin",
"createdAt": "2026-05-12T12:46:52.082Z"
}
]
+1 -1
View File
@@ -75,7 +75,7 @@ export async function proxy(request: NextRequest) {
if (token) {
try {
const { payload: p } = await jwtVerify(token, getSecretKey(), { algorithms: ['HS256'] })
payload = p
payload = p as { userId?: string; username?: string; role?: string }
} catch {
// expired or tampered — treat as unauthenticated
}