A public Playtime tab and player-drawer playtime, and staff-only figures (who's on, staff activity, disconnect reasons, countries, names, sessions) for @css/generic on the staff panel and on the public site when signed in. Hidden unless SAW_PT_DSN is set and its tables are there.
42 lines
1.9 KiB
Bash
42 lines
1.9 KiB
Bash
# Copy to simpleadmin-web.env and fill in. Never commit the real file.
|
|
|
|
# Where people reach the panel. Steam sends signed-in users back here, so it must match exactly.
|
|
SAW_BASE_URL=https://bans.example.com
|
|
# At least 32 random characters: openssl rand -hex 32. Changing it signs everyone out.
|
|
SAW_SESSION_SECRET=
|
|
|
|
# SimpleAdmin's config file. The panel reads the database login from it, and edits the
|
|
# Punishments settings in it. Mount it read-only to turn editing off.
|
|
SAW_SA_CONFIG=/data/CS2-SimpleAdmin.json
|
|
# Or give the database directly instead (then SAW_SA_CONFIG is optional):
|
|
# SAW_DB_DSN=user:password@tcp(db-host:3306)/simpleadmin
|
|
# If the host in SimpleAdmin's config isn't reachable from the panel (e.g. a container name):
|
|
# SAW_DB_HOST=127.0.0.1:3306
|
|
|
|
# PlaytimeHistory's database, its own and not SimpleAdmin's. Unset: no playtime anywhere. A user
|
|
# with only SELECT on it is enough.
|
|
# SAW_PT_DSN=pt_web:password@tcp(db-host:3306)/playtime_history
|
|
# Only one server's playtime (pt_servers.id), if several share that database. 0 or unset: all.
|
|
# SAW_PT_SERVER_ID=0
|
|
|
|
# RCON. By default the address and password come from SimpleAdmin's sa_servers table.
|
|
# SAW_RCON_ADDR=127.0.0.1:27015
|
|
# SAW_RCON_PASSWORD=
|
|
# Needed only if sa_servers lists more than one server.
|
|
# SAW_SERVER_ID=1
|
|
|
|
# The address shown under "Join server" on the public page. Defaults to sa_servers.address.
|
|
# SAW_JOIN_ADDRESS=cs2.example.com:27015
|
|
|
|
# Rank labels, colours and public descriptions. Built-in defaults cover the #rank/* groups.
|
|
# SAW_SITE_CONFIG=/data/site.json
|
|
|
|
# The Android app (android/build.sh), for /.well-known/assetlinks.json. Without these the app still
|
|
# works, but Chrome shows its URL bar over it. build.sh prints the fingerprint; several are
|
|
# comma-separated (e.g. the Play signing key as well).
|
|
# SAW_ANDROID_PACKAGE=sh.zio.cs2
|
|
# SAW_ANDROID_CERT_SHA256=AB:CD:...
|
|
|
|
# SAW_LISTEN=:8080
|
|
# SAW_POLL_SECONDS=5
|
|
# SAW_TIMEZONE=UTC (defaults to SimpleAdmin's Timezone setting)
|