Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ services:
NENE_DB_USER: "${NENE_DB_USER:-nene}"
NENE_DB_PASS: "${NENE_DB_PASS:-nene}"
NENE_SAMPLE_ADMIN_PASSWORD: "${NENE_SAMPLE_ADMIN_PASSWORD:-admin}"
NENE_LOGOUT_URI: "${NENE_LOGOUT_URI:-/}"
ports:
- "${NENE_PORT:-8080}:80"
volumes:
Expand Down
8 changes: 8 additions & 0 deletions docs/development/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ Use another phpMyAdmin port if needed:
NENE_PHPMYADMIN_PORT=8083 docker compose up --build
```

Override the unauthenticated redirect target if your app has a custom login page:

```sh
NENE_LOGOUT_URI=/auth/login docker compose up --build
```

`LOGOUT_URI` is used by `ControllerBase::sessionCheck()` when an unauthenticated visitor hits an HTML page that requires login. The default `/` sends them to the site root; set this to your login URL (e.g. `/auth/login`) so they land on a useful page instead of the index splash.

## Session Cookie Settings

The app explicitly configures PHP session Cookie attributes before `session_start()`:
Expand Down
2 changes: 1 addition & 1 deletion ini/xSystemIni.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
const OWN_DOMAIN = 'localhost';
const URI_ROOT = '/';
const LAYERS_NUM = 0;
const LOGOUT_URI = '/';
define('LOGOUT_URI', $getEnv('NENE_LOGOUT_URI', '/'));

/*
* Public assets.
Expand Down