Self-hosted social media wall for kiosk displays, built with Rust.
One static binary: slideshow, post fetching, video conversion and media cache.
Litfass shows your company's social media posts as a full-screen slideshow on kiosk displays in the office, the lobby or the canteen. It fetches the posts from content providers in the background, converts videos through api.video, and caches images, videos and PDF carousel pages on disk, so the displays keep running when an upstream service is not reachable.
Supported backends today: SWAT.io (Instagram, LinkedIn, Facebook, ...) for content and api.video (optional) for video transcoding. Content providers are pluggable, so more can be added later.
- Full-screen slideshow with profile picture, name, relative date (German), text truncated to 300 characters and the post's media.
- Videos play to the end; slides without video rotate after 10 seconds.
- Posts with several images (Instagram carousels, LinkedIn PDF carousels) become a gallery with a counter.
- Background refresh; the last good result stays on screen if SWAT.io is down, also across restarts.
- Optional video conversion with api.video, without uploading anything twice.
- Optional media proxy with a disk cache, host allow-list,
Rangesupport and expiry. - LinkedIn PDF carousels rendered to JPEG pages in pure Rust.
- Configurable refresh interval and background colour.
- No database, and no IP addresses or user agents are logged.
- One static binary,
FROM scratchimage, non-root user, multi-arch (amd64, arm64).
Litfass speaks plain HTTP on port 8080 (change it with PORT). It does not handle TLS:
put a reverse proxy or CDN in front of it to serve HTTPS, so that the page, the API and
the media share one HTTPS origin.
docker run -p 8080:8080 \
-v litfass-media:/tmp/media \
-e PROVIDER_SWAT_IO_ENABLED=true \
-e PROVIDER_SWAT_IO_TOKEN=<swat-token> \
-e PROVIDER_SWAT_IO_WORKSPACE_ID=<workspace-id> \
-e PROVIDER_SWAT_IO_CHANNEL_IDS=<channel-id>,<channel-id> \
-e API_VIDEO_ENABLED=true \
-e API_VIDEO_TOKEN=<api-video-token> \
-e MEDIA_PROXY_ENABLED=true \
-e 'MEDIA_PROXY_ALLOWED_HOSTS=vod.api.video,posts-swat-io.s3.eu-central-1.amazonaws.com,*.fbcdn.net,media.licdn.com' \
ghcr.io/fusonic/litfass:latestOpen http://localhost:8080. The volume keeps the media cache and the snapshot across restarts; without it the cache is lost when the container is removed. On the first start the wall stays empty until the first refresh has finished.
All settings are environment variables. Booleans accept true/false, 1/0,
yes/no and on/off (case-insensitive). Empty values count as unset.
| Name | Description | Default |
|---|---|---|
PORT |
Port Litfass listens on (1 to 65535), on all interfaces. | 8080 |
LOG_LEVEL |
error, warn, info, debug or trace. |
info |
| Name | Description | Default |
|---|---|---|
FRONTEND_REFRESH_SECS |
Interval of the full page reload in seconds, at least 60; waits for the next slide change. |
3600 |
FRONTEND_BACKGROUND_COLOR |
Page background as hex colour, #rgb or #rrggbb. |
#f0f0f0 |
| Name | Description | Default |
|---|---|---|
PROVIDER_SWAT_IO_ENABLED |
Enable the SWAT.io provider. At least one provider must be enabled, so this is effectively required. | false |
PROVIDER_SWAT_IO_TOKEN |
SWAT.io API token. | required if enabled |
PROVIDER_SWAT_IO_WORKSPACE_ID |
SWAT.io workspace id (number). | required if enabled |
PROVIDER_SWAT_IO_CHANNEL_IDS |
Comma-separated channel ids (numbers) to show; at least one. | required if enabled |
PROVIDER_SWAT_IO_DAYS |
Look-back window in days, 1 to 365. |
30 |
PROVIDER_SWAT_IO_REFRESH_SECS |
How often SWAT.io is queried, in seconds, at least 10. |
600 |
Workspace and channel ids are plain numbers. Take them from your SWAT.io account or from the SWAT.io API, which lists your workspaces and channels. Only posts from the listed channels are shown.
| Name | Description | Default |
|---|---|---|
API_VIDEO_ENABLED |
Convert videos with api.video; without it, videos use their original URL. | false |
API_VIDEO_TOKEN |
api.video API key (dashboard, under API keys). | required if enabled |
| Name | Description | Default |
|---|---|---|
MEDIA_PROXY_ENABLED |
Serve images, videos and rendered PDF pages through the disk cache. Without it, URLs pass through unchanged, /media answers 404, PDF documents are skipped and no snapshot is written. |
false |
MEDIA_PROXY_ALLOWED_HOSTS |
Comma-separated allow-list of hosts the proxy may fetch from: host or *.domain, optionally with :port. |
required if the proxy is enabled; no default (see below) |
MEDIA_PROXY_MAX_AGE |
Days an item may be absent from the shown feed before it is deleted, at least 1. |
7 |
MEDIA_PROXY_DIR |
Directory of the media cache and the snapshot; created at startup. | /tmp/media |
Litfass checks the whole configuration before it starts and exits with a message such as
configuration error: PROVIDER_SWAT_IO_TOKEN is required when PROVIDER_SWAT_IO_ENABLED is true
if a value is invalid, a required variable is missing, no content provider is enabled or
MEDIA_PROXY_DIR is not writable. It only logs a warning if API_VIDEO_ENABLED is true
but MEDIA_PROXY_ALLOWED_HOSTS does not allow vod.api.video: converted videos then
work, but are not cached.
MEDIA_PROXY_ALLOWED_HOSTS has no default and is required when the media proxy is
enabled. Litfass only rewrites, fetches and caches URLs whose host is on this list, so
you decide explicitly which origins it may contact. Allow these hosts for each source:
| Source | Host | Content |
|---|---|---|
| SWAT.io | posts-swat-io.s3.eu-central-1.amazonaws.com |
Uploaded images, videos and LinkedIn PDF documents |
| SWAT.io | *.fbcdn.net |
Instagram and Facebook profile pictures and images |
| SWAT.io | media.licdn.com |
LinkedIn profile pictures and images |
| api.video | vod.api.video |
Converted MP4 files |
Recommended value for SWAT.io and api.video combined (drop vod.api.video if you do not
use api.video):
vod.api.video,posts-swat-io.s3.eu-central-1.amazonaws.com,*.fbcdn.net,media.licdn.com
The matching rules (wildcards, ports, examples) are in How it works.
- How it works: providers, videos, PDF carousels, media cache, snapshot, frontend, health check and host matching.
- Architecture: component diagram, request flow and module overview.
- Running on Kubernetes: what a deployment needs.
- Kiosk setup: running the page in an Edge kiosk and inspecting it remotely.
- Contributing: development setup, tests and releases.
Only URLs whose host is in MEDIA_PROXY_ALLOWED_HOSTS are cached; other media is loaded
by the display directly from its host. Find the host in the browser's network inspector
(see Kiosk setup) and add it to the list. Without MEDIA_PROXY_ENABLED
nothing is cached, and PDF carousels are skipped.
A new video is uploaded to api.video on the first refresh that sees it and encoded afterwards. Until the MP4 is playable, the post uses the original file; a later refresh switches to the MP4 and the display picks it up with its next page reload. See Videos and api.video.
Videos always use their original URL, nothing is uploaded and no api.video account is needed. With the media proxy enabled the original files are still cached, if their host is allowed.
Stop Litfass, delete the contents of MEDIA_PROXY_DIR (or the volume) and start it again.
Everything is downloaded or rendered again on the next refresh. To only drop the stored
posts, delete feed.json in that directory. Without manual action, files that are no
longer in the feed expire after MEDIA_PROXY_MAX_AGE days (default 7).
