|
|
@@ -1,10 +1,10 @@
|
|
|
<!-- --------------------------------------------------------------------------- -->
|
|
|
|
|
|
-<!-- Folder: Docs -->
|
|
|
+<!-- Ordner: Docs -->
|
|
|
|
|
|
-<!-- File: runbook.md -->
|
|
|
+<!-- Datei: runbook.md -->
|
|
|
|
|
|
-<!-- Relative Path: Docs/runbook.md -->
|
|
|
+<!-- Relativer Pfad: Docs/runbook.md -->
|
|
|
|
|
|
<!-- --------------------------------------------------------------------------- -->
|
|
|
|
|
|
@@ -213,7 +213,15 @@ Edit `.env.server`:
|
|
|
|
|
|
- Set a strong `SESSION_SECRET`.
|
|
|
- Keep `NODE_ENV=production`.
|
|
|
-- Do **not** set `SESSION_COOKIE_SECURE=false`.
|
|
|
+- If the app is served behind HTTPS (recommended): keep `SESSION_COOKIE_SECURE` unset (or `true`).
|
|
|
+
|
|
|
+If the app is currently served over plain HTTP (no TLS), you may temporarily set:
|
|
|
+
|
|
|
+```env
|
|
|
+SESSION_COOKIE_SECURE=false
|
|
|
+```
|
|
|
+
|
|
|
+This is required because most clients will not send `Secure` cookies over HTTP.
|
|
|
|
|
|
### 3.4 Start the stack on the server
|
|
|
|
|
|
@@ -230,8 +238,7 @@ If you want a simpler startup command (and to avoid forgetting `ENV_FILE=...`),
|
|
|
Create `./.env` in the project root:
|
|
|
|
|
|
```bash
|
|
|
-printf "ENV_FILE=.env.server
|
|
|
-" > .env
|
|
|
+printf "ENV_FILE=.env.server\n" > .env
|
|
|
```
|
|
|
|
|
|
After that, you can start the stack with:
|
|
|
@@ -246,21 +253,21 @@ Notes:
|
|
|
- `.env.server` still contains secrets and must not be committed.
|
|
|
- Always run `docker compose` from the project root so Compose picks up the correct `.env` file.
|
|
|
|
|
|
-````
|
|
|
-
|
|
|
### 3.5 Verify
|
|
|
|
|
|
On the server:
|
|
|
|
|
|
```bash
|
|
|
-curl -s http://localhost:3000/api/health
|
|
|
-````
|
|
|
+curl -s http://127.0.0.1:3000/api/health
|
|
|
+```
|
|
|
|
|
|
Expected:
|
|
|
|
|
|
- `db` is `ok`
|
|
|
- `nas.entriesSample` contains real branch folders (`NLxx`)
|
|
|
|
|
|
+> Note: On some Linux servers, `localhost` resolves to IPv6 (`::1`). If `curl http://localhost:3000` fails, use `127.0.0.1` or `curl -4`.
|
|
|
+
|
|
|
### 3.6 Logs and troubleshooting
|
|
|
|
|
|
```bash
|
|
|
@@ -273,4 +280,4 @@ docker compose -f docker-compose.yml logs --tail=200 app
|
|
|
|
|
|
For real users, the application should be served over HTTPS (reverse proxy / TLS termination).
|
|
|
|
|
|
-Local HTTP testing is supported via `SESSION_COOKIE_SECURE=false`.
|
|
|
+If HTTPS is enabled, keep the default secure-cookie behavior.
|