소스 검색

RHL-005-feat(env): add example environment configuration files for Docker and local development

Code_Uwe 2 일 전
부모
커밋
3bf9d986f5
2개의 변경된 파일46개의 추가작업 그리고 0개의 파일을 삭제
  1. 22 0
      .env.docker.example
  2. 24 0
      .env.local.example

+ 22 - 0
.env.docker.example

@@ -0,0 +1,22 @@
+# Docker-based deployment (docker-compose)
+# Copy this file to ".env.docker" and adjust values.
+#
+# NOTE: Never commit real secrets. Use placeholders in this example file.
+
+# MongoDB connection string inside the docker-compose network.
+# "mongo" should match the MongoDB service name in docker-compose.yml.
+MONGODB_URI=mongodb://mongo:27017/rhl_lieferscheine
+
+# Secret used to sign session JWT cookies.
+# Requirements: strong + random, at least 32 characters, never committed.
+# Example generation:
+#   openssl rand -base64 48
+SESSION_SECRET=63a3f50aac4fb8838e457d654348df5b
+
+# Must match the mount target inside the app container (read-only mount recommended).
+NAS_ROOT_PATH=/mnt/niederlassungen
+
+NODE_ENV=production
+
+# Optional. Only needed if you run the app on a non-default port.
+# PORT=3000

+ 24 - 0
.env.local.example

@@ -0,0 +1,24 @@
+# Local development (Next.js dev server)
+# Copy this file to ".env.local" and adjust values.
+#
+# NOTE: Never commit real secrets. Use placeholders in this example file.
+
+# MongoDB connection string (local dev).
+# Expected format: mongodb://... OR mongodb+srv://...
+MONGODB_URI=mongodb://localhost:27017/rhl_lieferscheine
+
+# Secret used to sign session JWT cookies.
+# Requirements: strong + random, at least 32 characters, never committed.
+# Example generation:
+#   openssl rand -base64 48
+SESSION_SECRET=5ff5ecfddc3e3b8aad4a00a2dd637fea
+
+# Absolute Unix path to the NAS root folder that contains branch directories (NLxx/...).
+# For local dev you can point this to a local fixture folder.
+NAS_ROOT_PATH=/mnt/niederlassungen
+
+# Optional. Next.js dev usually sets this, but keeping it explicit is fine.
+NODE_ENV=development
+
+# Optional. Only needed if you want a custom port for your local server.
+# PORT=3000