Free, open-source screen sharing for private live streams with friends. Watch together in a browser or self-host Piik. 免费开源的私密屏幕共享,支持游戏直播、一起看电影与自部署。
# Point this domain directly at the server. See the self-hosting guide for HTTPS.
PUBLIC_BASE_URL=https://share.example.com
STUN_URLS=stun:share.example.com:3478
MAX_VIEWERS_PER_ROOM=20
# Empty means the site opens without a site password. Room access is separate.
SITE_ACCESS_PASSWORD=
# Optional for public sites: reclaim empty rooms after an hour, or earlier
# under room-code pressure. Unset/0 preserves room authority indefinitely.
# ROOM_EMPTY_TIMEOUT_SECONDS=3600
# Optional automatic media fallback: set BOTH values and allow UDP 7882.
# SFU_UDP_PORT=7882
# SFU_PUBLIC_IP=203.0.113.10
# Optional: require SFU for all rooms instead of P2P-first (requires SFU_UDP_PORT).
# SFU_ONLY=true
# Optional NAT survey: also allow UDP 3479 and 3480.
# NAT_PREDICTION_ENABLED=true
# To pin a release, replace latest with its vMAJOR.MINOR.PATCH tag.
# PIIK_IMAGE=ghcr.io/tntcrafthim/piik:latest