mirror of
https://gitlab.w-hs.de/an14051/backerup-website.git
synced 2026-07-27 17:35:29 +00:00
feat: update Docker configuration and .gitignore, remove unused JSON files
This commit is contained in:
+22
@@ -40,4 +40,26 @@ yarn-error.log*
|
|||||||
# typescript
|
# typescript
|
||||||
*.tsbuildinfo
|
*.tsbuildinfo
|
||||||
next-env.d.ts
|
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/uploads/
|
||||||
|
/frontend/data/*.db
|
||||||
|
/frontend/data/*.db-shm
|
||||||
|
/frontend/data/*.db-wal
|
||||||
|
/frontend/data/*.migrated
|
||||||
|
/data/uploads/
|
||||||
|
|||||||
+2
-1
@@ -25,7 +25,8 @@ ENV NODE_ENV=production
|
|||||||
ENV NEXT_TELEMETRY_DISABLED=1
|
ENV NEXT_TELEMETRY_DISABLED=1
|
||||||
|
|
||||||
# Dedicated non-root user
|
# 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
|
adduser --system --uid 1001 nextjs
|
||||||
|
|
||||||
# Next.js standalone output
|
# Next.js standalone output
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||||
TAG="${1:-backerup-website:latest}"
|
TAG="${1:-gitea.doomlabs.de/kptltd00m/backerup-website:latest}"
|
||||||
|
|
||||||
echo "==> Building image: $TAG"
|
echo "==> Building image: $TAG"
|
||||||
docker build \
|
docker build \
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||||
TAG="${1:-backerup-website:latest}"
|
TAG="${1:-gitea.doomlabs.de/kptltd00m/backerup-website:latest}"
|
||||||
|
|
||||||
# 1. Build
|
# 1. Build
|
||||||
"$SCRIPT_DIR/build.sh" "$TAG"
|
"$SCRIPT_DIR/build.sh" "$TAG"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
backerup-website:
|
backerup-website:
|
||||||
image: backerup-website:latest
|
image: gitea.doomlabs.de/kptltd00m/backerup-website:latest
|
||||||
container_name: backerup-website
|
container_name: backerup-website
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@@ -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"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
@@ -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
@@ -75,7 +75,7 @@ export async function proxy(request: NextRequest) {
|
|||||||
if (token) {
|
if (token) {
|
||||||
try {
|
try {
|
||||||
const { payload: p } = await jwtVerify(token, getSecretKey(), { algorithms: ['HS256'] })
|
const { payload: p } = await jwtVerify(token, getSecretKey(), { algorithms: ['HS256'] })
|
||||||
payload = p
|
payload = p as { userId?: string; username?: string; role?: string }
|
||||||
} catch {
|
} catch {
|
||||||
// expired or tampered — treat as unauthenticated
|
// expired or tampered — treat as unauthenticated
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user