Add default administrator user and authentication configuration options.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 705f2157-ef97-4fbd-89e4-8c7f2ecaea90
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ed01c5f-a82d-405a-b728-b2e3d127c60c/2dd1a20c-f467-4f7c-915f-c7b9ad6f9965.jpg
This commit is contained in:
alphaeusmote
2025-04-11 04:08:19 +00:00
parent bed5dc7fb2
commit fdedd8dc60
3 changed files with 44 additions and 1 deletions
+12
View File
@@ -25,6 +25,18 @@ WORKDIR /app
ENV NODE_ENV=production
ENV PORT=5000
# Authentication environment variables
ENV JWT_SECRET=change-this-in-production
ENV SESSION_SECRET=change-this-in-production
ENV DEFAULT_ADMIN_USERNAME=admin
ENV DEFAULT_ADMIN_PASSWORD=password
ENV DEFAULT_ADMIN_EMAIL=
ENV DEFAULT_ADMIN_FULLNAME="System Administrator"
ENV DISABLE_REGISTRATION=false
# Database configuration
ENV DATABASE_URL=postgres://postgres:postgres@postgres:5432/admgr
# Copy package files
COPY package*.json ./