Piik now has one public presentation and a coordinated App/Server release path. This phase unifies the room UI, rewrites the bilingual README and guides, adds a static website with an inline product film, and prepares matching GitHub/Gitee packages and update links. The film uses the current homepage and shared product controls on one seekable timeline. Runtime fixes preserve presentation when the App opens a room, normalize Site origins, and keep capture and media-recovery status in the television indicator. New visits use Chinese for a Chinese system language and English otherwise; explicit language and visual-mode choices remain available. An optional site passphrase controls site entry, while room authorization remains enforced. GitHub is the release authority. Gitee mirrors verified packages and provides update metadata when GitHub is unavailable. Reviewed PR release notes become the GitHub Release description. The separate public demo uses P2P only, with HTTPS and STUN verified. Validation: 756 Web tests, TypeScript and production build; Go core tests, formatting, vet and available target builds; bounded Windows capture and App/Site interoperability; browser film checks, audible playback and narrow layouts; anonymous Gitee Windows-package download, checksum and launcher/update-link checks. Public demo acceptance covers authenticated WebSocket signaling, synthetic P2P video and room cleanup on one network. macOS/Linux physical capture and the wider device/network/endurance matrix remain explicitly deferred. Publication builds every package from the merged source SHA. The repository is public, main protection is active, and Pages is configured for piik.tv. CI/publisher and Pages deployment records own publication results. ## Release notes ### 中文 Piik 是免费开源的屏幕共享工具。开个房间,发出邀请,最多 20 位朋友就能用浏览器加入观看。 - 使用浏览器或 Piik App 分享游戏、窗口和整个屏幕。 - 优先建立直连;自托管站点可开启媒体转发作为备用线路。 - Piik App 支持本地房间、临时公网邀请和已有站点。 - Piik Server 内置网页界面、房间管理和连接服务,方便自行部署。 - 提供中英文界面与使用指南,以及 GitHub、Gitee 两条下载线路。 [官网](https://piik.tv) · [在线体验](https://demo.piik.tv) · [使用指南](https://github.com/TNTcraftHIM/Piik/blob/main/docs/guide/getting-started.zh-CN.md) · [自行部署](https://github.com/TNTcraftHIM/Piik/blob/main/docs/operations/self-hosting.zh-CN.md) · [Gitee 下载](https://gitee.com/TNTcraftHIM/Piik/releases) Windows App 和桌面浏览器是本次主要验证的平台。macOS 和 Linux 尚未经过实机测试,欢迎有设备的朋友测试并反馈。演示站和 App 公网邀请使用 P2P,受限网络下可能无法连接;自托管站点可开启媒体转发。 ### English Piik is free, open-source screen sharing for you and up to 20 viewers. Start a room, send an invitation, and your friends can join in a browser. - Share games, windows or a whole screen from your browser or Piik App. - Direct connections come first, with optional media forwarding on self-hosted sites. - Piik App supports local rooms, temporary public invitations and existing sites. - Piik Server includes the web interface, rooms and connection services for self-hosting. - English and Chinese interfaces and guides are available, with GitHub and Gitee downloads. [Website](https://piik.tv) · [Online demo](https://demo.piik.tv) · [User guide](https://github.com/TNTcraftHIM/Piik/blob/main/docs/guide/getting-started.md) · [Self-hosting](https://github.com/TNTcraftHIM/Piik/blob/main/docs/operations/self-hosting.md) · [Gitee downloads](https://gitee.com/TNTcraftHIM/Piik/releases) Windows App and desktop browsers are the primary validated paths. macOS and Linux have not yet been tested on physical devices; testing and feedback are welcome. The demo and App public invitations rely on P2P and may not connect on restrictive networks. Self-hosted sites can enable media forwarding.
5.3 KiB
Service Management
For first installation, use the short self-hosting guide. This reference covers a persistent Linux service and the optional container recipe.
systemd
The service template runs as the
piik user, reads /etc/piik/piik.env, and starts
/opt/piik/current/piik-server. Create the service account and place the extracted
release at that path, or point current at its release directory. Copy your
configuration to /etc/piik/piik.env and set
ROOM_DATABASE_PATH=/var/lib/piik/rooms.sqlite; the unit creates this state directory.
Keep the environment file readable only by its operator.
Install the template as /etc/systemd/system/piik.service, then run:
sudo systemctl daemon-reload
sudo systemctl enable --now piik
sudo systemctl status piik
Keep HTTP bound to loopback when the HTTPS proxy runs on the same host. STUN and optional SFU use their own public UDP listeners. An existing nginx installation can use the proxy example after adapting the domain and certificate paths.
Container
The runtime-only Dockerfile consumes the existing linux/amd64 Server release; it does not rebuild Go or Browser assets. Its pinned Distroless static non-root base includes CA certificates for HTTPS release checks and has no shell or package manager. This is an optional recipe, not a published image or automatic installer.
Verify the release archive against its descriptor and manifest using the
release procedure, then extract its four files into a new
build-context directory: piik-server, LICENSE, THIRD-PARTY-NOTICES.txt
and REVISION. Use that directory, not the repository or a secrets directory:
docker build --platform linux/amd64 \
-f /path/to/Piik/deploy/container/Dockerfile \
-t piik:<full-revision> /path/to/extracted-runtime
docker run --rm --env-file /path/to/piik.env \
piik:<full-revision> --check-config
Use the existing production configuration.
Keep LISTEN_HOST=0.0.0.0 inside the container and retain the host's existing
HTTPS/WebSocket proxy. With Docker port mapping, set SFU_PUBLIC_IP to the
reachable server IPv4 address when SFU is enabled; container-private candidates
are not Internet-reachable. Advertised STUN names must resolve to the server's
public address, and UDP must reach the container directly.
The following example publishes the standard listeners and keeps HTTP private to a proxy running on the same host. Omit UDP publish options for disabled SFU or auxiliary STUN listeners; use the matching port if configuration changes it.
docker run -d --name piik --restart unless-stopped --stop-timeout 20 \
--read-only --cap-drop ALL --security-opt no-new-privileges \
--env-file /path/to/piik.env \
--mount type=volume,source=piik-data,target=/home/nonroot \
-e ROOM_DATABASE_PATH=/home/nonroot/rooms.sqlite \
-p 127.0.0.1:8787:8787/tcp \
-p 3478:3478/udp -p 3479:3479/udp -p 3480:3480/udp -p 7882:7882/udp \
piik:<full-revision>
The image's /home/nonroot is owned by UID/GID 65532:65532 with mode 0700.
A new named volume inherits that directory; an existing volume or bind mount
must already be writable by that identity. Keep this volume when replacing the
container. Set ROOM_DATABASE_PATH=:memory: for memory-only room authority. Diagnostics
remain opt-in and use /home/nonroot/logs; export and retention
remain the operator's responsibility. Do not mount application files writable.
With diagnostics enabled, docker kill --signal=USR1 piik requests a local
export without stopping the container; the ZIP remains in the mounted log directory.
Check /healthz from the host and public proxy, then verify configured STUN/SFU
UDP and room/media behavior using operational verification.
There is no shell-based healthcheck in the image. Retain the previous image,
environment and volume backup before replacement. Stop the old container before
reusing its listeners or SQLite volume, and recreate with the previous image and
environment if verification fails. The bare-metal release-app.sh wrapper does
not manage containers. This recipe changes no proxy or firewall itself.
Operational Verification
/healthzreturns{"status":"ok"}locally and through the public origin.- Piik and the HTTPS proxy are active with expected restart counts and bounded logs/resources; Piik owns the configured STUN/SFU UDP listeners.
- The official Trickle ICE sample obtains an ordinary UDP
srflxcandidate from the configured STUN service and no relay candidate. - A direct room presents media on two networks when Peer ICE succeeds.
- A constrained route creates one managed Host publication and only admitted subscriptions over embedded SFU UDP; Peer descendants remain ordinary P2P.
- Blocking all UDP reaches a clear bounded failure.
- Restarting Piik in stable mode retains room authority while Browser sessions and media reconnect from fresh process state.
Representative network, mobile, audio, 20-Viewer, and long-running evidence is tracked in verification status, not in this runbook.