Add initial .env.sample and compose.yaml for openGym service configuration

This commit is contained in:
Nikholas Pcenicni
2026-11-01 18:22:48 -05:00
parent 7811233eb8
commit e7f8eff89c
2 changed files with 69 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
# openGym - self-hosted gym & body-weight tracker
# https://github.com/DuarteSantos8/openGym
# Passkeys are bound to the exact hostname and require HTTPS (localhost excepted).
# Point your reverse proxy at WEB_PORT and set these to the public domain.
RP_ID=gym.yourdomain.com
ORIGIN=https://gym.yourdomain.com
RP_NAME=openGym
# Host port for the web UI
WEB_PORT=8095
# Host path for app data (users, passkeys, session secret, uploads)
DATA_PATH=./data
# First profile created becomes admin (1/0)
FIRST_USER_ADMIN=1
# Comma-separated user IDs to grant admin (optional)
ADMIN_UIDS=
# Signup / login options (1/0)
INVITE_ONLY=0
ALLOW_GUEST=0
PASSWORD_LOGIN=0
# Trust X-Forwarded-For from the web container (leave at 1)
TRUST_PROXY=1
# Cloudflare Tunnel users: set to '$http_cf_connecting_ip' (single quotes included)
CF_CONNECTING_IP=
# Push notification contact (optional), e.g. mailto:you@example.com
VAPID_SUBJECT=