Prepare v2.0.0 release
This commit is contained in:
@@ -19,12 +19,6 @@ It runs as two connected services:
|
||||
|
||||
Admin permissions are split into CRUD actions per section, so you can grant read-only, editor, creator, or delete access separately.
|
||||
|
||||
## Documentation
|
||||
|
||||
Player-facing API details live in [docs/api.md](docs/api.md). It covers the player HTTP endpoints for screen playback, playlist data, connections, and commands.
|
||||
|
||||
Player websocket behavior lives in [docs/websocket.md](docs/websocket.md). It covers the player control socket, snapshot stream, and the command/message shapes the player accepts.
|
||||
|
||||
## What You Need
|
||||
|
||||
- Docker and Docker Compose
|
||||
@@ -47,35 +41,46 @@ You can change the initial admin credentials with these optional environment var
|
||||
|
||||
## Configuration
|
||||
|
||||
The app reads its settings from environment variables.
|
||||
The app reads its settings from environment variables. The list below matches the provided `.env.example` file.
|
||||
|
||||
### Compose and Shared Settings
|
||||
|
||||
- `PULSE_SIGNAGE_IMAGE` - image tag used by the published Compose setup, default `git.lzstealth.com/lzstealth/pulse-signage:latest`
|
||||
- `PULSE_SIGNAGE_SHARED_SECRET` - shared secret used to sign player page API fetches and server-to-player requests; page tokens auto-renew while the page stays active and request signatures must be fresh; leave unset to keep the auth checks disabled for compatibility
|
||||
|
||||
### Database Connection
|
||||
|
||||
- `DB_HOST` - MySQL host, default `127.0.0.1`
|
||||
- `DB_HOST` - MySQL host, default `mysql`
|
||||
- `DB_PORT` - MySQL port, default `3306`
|
||||
- `DB_NAME` - database name, default `signage`
|
||||
- `DB_USER` - database user, default `signage_user`
|
||||
- `DB_NAME` - database name, default `pulse-signage`
|
||||
- `DB_USER` - database user, default `pulse-signage`
|
||||
- `DB_PASSWORD` - database password, default `signage_password`
|
||||
|
||||
### Web Admin App
|
||||
|
||||
- `WEB_PORT` - admin app port, default `3000`
|
||||
- `PLAYER_INTERNAL_BASE_URL` - player address used by the server, default `http://player:3001`
|
||||
- `PLAYER_PUBLIC_BASE_URL` - player address shown in browser links, default `http://localhost:3001`
|
||||
- `PULSE_SIGNAGE_SHARED_SECRET` - shared secret used to sign player page API fetches and server-to-player requests; page tokens auto-renew while the page stays active and request signatures must be fresh; leave unset to keep the auth checks disabled for compatibility
|
||||
- `MYSQL_ROOT_PASSWORD` - root password for the bundled MySQL container, default `root_password`
|
||||
|
||||
### Player App
|
||||
|
||||
- `PLAYER_PORT` - player port, default `3001`
|
||||
- `PLAYER_INTERNAL_BASE_URL` - internal player URL used by the web app, default `http://player:8081`
|
||||
- `PLAYER_PUBLIC_BASE_URL` - public player URL used by browser-facing links, default `http://localhost:8081`
|
||||
|
||||
### Web App
|
||||
|
||||
- `SESSION_MAX_AGE_DAYS` - admin session lifetime in days, default `14`
|
||||
- `DASHBOARD_REFRESH_INTERVAL_MS` - dashboard refresh interval in milliseconds, default `2000`
|
||||
- `DEFAULT_ADMIN_USERNAME` - username used for the initial admin account, default `admin`
|
||||
- `DEFAULT_ADMIN_NAME` - display name used for the initial admin account, default `Admin`
|
||||
- `DEFAULT_ADMIN_PASSWORD` - password used for the initial admin account, default `admin`
|
||||
- `PASSWORD_HASH_ITERATIONS` - password hash iteration count, default `310000`
|
||||
|
||||
## Docker Compose
|
||||
|
||||
The repository includes a `docker-compose.yml` file that starts three services:
|
||||
|
||||
- `web` - the admin app on port `3000`
|
||||
- `player` - the signage player on port `3001`
|
||||
- `web` - the admin app exposed on container port `8080`
|
||||
- `player` - the signage player exposed on container port `8081`
|
||||
- `mysql` - the database on port `3306`
|
||||
|
||||
Change the published host ports in Docker Compose if you want different external ports; the app containers listen on `8080` and `8081` internally.
|
||||
|
||||
By default, `web` and `player` use the published image from `git.lzstealth.com/lzstealth/pulse-signage:latest`. You can point both services at a specific release by setting `PULSE_SIGNAGE_IMAGE` to a tagged image such as `git.lzstealth.com/lzstealth/pulse-signage:v1.0.0`.
|
||||
|
||||
The Compose file also defines a shared `media` volume for stored assets and a `mysql_data` volume for database persistence.
|
||||
@@ -89,4 +94,12 @@ Outside Docker, the web app and player do not have to use the same upload locati
|
||||
- When running in Docker, that value should point to the Docker service name, not `localhost`.
|
||||
- If `PULSE_SIGNAGE_SHARED_SECRET` is set, the web and player containers must use the same value, and any reverse proxy in front of the player must forward `/api/media/...` without rewriting the path.
|
||||
- Uploaded media is stored separately from the application source, so make sure it is backed up if you are not using Docker volumes.
|
||||
- The player page uses the browser Screen Wake Lock API when available, but kiosk mode and OS sleep settings still matter because the browser can deny or release the wake lock.
|
||||
- The player page uses the browser Screen Wake Lock API when available, but kiosk mode and OS sleep settings still matter because the browser can deny or release the wake lock.
|
||||
|
||||
## Documentation
|
||||
|
||||
Player-facing API details live in [docs/api.md](docs/api.md). It covers the player HTTP endpoints for screen playback, playlist data, connections, and commands.
|
||||
|
||||
Database schema details live in [docs/schema.md](docs/schema.md). It summarizes the current tables created at startup.
|
||||
|
||||
Player websocket behavior lives in [docs/websocket.md](docs/websocket.md). It covers the player control socket, snapshot stream, and the command/message shapes the player accepts.
|
||||
|
||||
Reference in New Issue
Block a user