Compare commits

3 Commits
v0.1.0 ... main

Author SHA1 Message Date
b35cd84bf3 chore: track .env.example, unignore from .gitignore 2026-03-09 22:48:25 +01:00
c97b8179af Update with Gitea registry 2026-03-09 22:32:42 +01:00
15b59d5e16 Increased the heap to 4G 2026-03-09 21:51:35 +01:00
4 changed files with 59 additions and 1 deletions

56
.env.example Normal file
View File

@@ -0,0 +1,56 @@
# ============================================================
# CubeAdmin - Environment Variables
# Copy this file to .env.local and fill in your values
# ============================================================
# ─── Application ─────────────────────────────────────────────
PORT=3000
NODE_ENV=development
BETTER_AUTH_URL=http://localhost:3000
# Generate with: openssl rand -base64 32
BETTER_AUTH_SECRET=change-me-with-a-strong-random-secret
# ─── Email (SMTP) ────────────────────────────────────────────
SMTP_HOST=smtp.example.com
SMTP_PORT=587
# Set to true only for port 465 (implicit TLS); false uses STARTTLS
SMTP_SECURE=false
SMTP_USER=your-smtp-username
SMTP_PASS=your-smtp-password
EMAIL_FROM=CubeAdmin <noreply@yourdomain.com>
# ─── Minecraft Server ────────────────────────────────────────
# Path to the Minecraft server directory on the host
MC_SERVER_PATH=/opt/minecraft/server
# RCON (Remote Console) - enable in server.properties
MC_RCON_HOST=127.0.0.1
MC_RCON_PORT=25575
MC_RCON_PASSWORD=change-me-rcon-password
# ─── BlueMap (optional 3D map) ───────────────────────────────
# URL where BlueMap is accessible (leave empty to disable)
BLUEMAP_URL=http://localhost:8100
# ─── Database ────────────────────────────────────────────────
# SQLite database path (relative to project root)
DATABASE_PATH=./data/cubeadmin.db
# ─── Security ────────────────────────────────────────────────
# Comma-separated list of trusted origins for CORS/CSRF
TRUSTED_ORIGINS=http://localhost:3000
# Rate limiting (requests per minute per IP for API routes)
RATE_LIMIT_RPM=100
# ─── First Admin Account (created on first startup) ──────────
INITIAL_ADMIN_EMAIL=admin@example.com
INITIAL_ADMIN_NAME=Administrator
# This password will be required to change on first login
INITIAL_ADMIN_PASSWORD=ChangeMe123!
# ─── Docker (used in docker-compose.yml) ─────────────────────
# Only needed when running via Docker Compose
MC_DATA_PATH=./mc-data
BACKUPS_PATH=./backups

1
.gitignore vendored
View File

@@ -33,6 +33,7 @@ yarn-error.log*
# env files (can opt-in for committing if needed) # env files (can opt-in for committing if needed)
.env* .env*
!.env.example
# vercel # vercel
.vercel .vercel

View File

@@ -12,6 +12,7 @@ WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules COPY --from=deps /app/node_modules ./node_modules
COPY . . COPY . .
ENV NODE_OPTIONS="--max-old-space-size=4096"
RUN bun run build RUN bun run build
# ─── Stage 3: Production runner ────────────────────────────────────────────── # ─── Stage 3: Production runner ──────────────────────────────────────────────

View File

@@ -1,6 +1,6 @@
services: services:
cubeadmin: cubeadmin:
image: cubeadmin:latest image: git.azuze.fr/kawa/cubeadmin:latest
# To build locally instead of pulling, uncomment: # To build locally instead of pulling, uncomment:
# build: . # build: .
container_name: cubeadmin container_name: cubeadmin