Host an online Buzzing System for online party games.
An online buzzing system for your browser implemented in KTor / Kotlin using websockets.
This service provides a buzzing system with different lobbies with unlimited participants to join and a host to have an overview on who buzzed first, and to reset the buzzers remotely.
This is the source-code of buzzer.moetz.dev.
The docker image can be found here: hub.docker.com/r/flowmo7/kotlin-buzzer.
Possible environment variables:
DOMAIN
: The domain this application is available at, e.g.buzzer.example.org
SUB_PATH
: When this application is served on a sub-path (not directly on the given domain, by e.g. a reverse proxy), you need to set the path here. Defaults to no path.IS_SECURE
: Whether this application is available as HTTPS / behind an HTTPS reverse proxy (which it should be). Default totrue
.ENABLE_DEBUG_LOGS
: Whether the application (server-side) should output a bit more information, and also print the buzz log to stdout. Defaults tofalse
.COLOR_FORM_BUTTON
: The color of the buttons before joining a lobby (on the index page). Defaults to#161D99
.COLOR_BUZZER_BUTTON_READY
: The color of the buzzer button. Defaults tolimegreen
.COLOR_BUZZER_BUTTON_BUZZED
: The color of the buzzer button when already buzzed. Defaults tocornflowerblue
.DEFAULT_LOBBY_CODE_LENGTH
: The length of the generated ([0-9a-f]
, lower-cased) lobby codes. Defaults to6
.DEFAULT_HOST_PASSWORD_LENGTH
: The length of the generated ([0-9a-f]
, lower-cased) host passwords. Defaults to8
.
services:
buzzer:
image: "flowmo7/kotlin-buzzer:master"
restart: unless-stopped
ports:
- 8080:8080 #Should be behind an SSL reverse proxy
environment:
- DOMAIN=buzzer.example.org
This project is inspired by bufferapp/buzzer.
Copyright 2021-2022 Florian Mötz
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.