try to fix this spaghetti of a code

This commit is contained in:
Frederik Spirgi
2026-09-09 10:57:34 +02:00
parent 101116472a
commit 729de5dcc4
5 changed files with 102 additions and 29 deletions
+6 -3
View File
@@ -1,5 +1,8 @@
# Generate a secret with: node -e "console.log(require('node:crypto').randomBytes(32).toString('hex'))"
TOKEN_SECRET=replace-with-a-random-secret
# Generate a value with: node -e "console.log(require('node:crypto').randomBytes(32).toString('hex'))"
TOKEN_SECRET=replace-with-a-generated-secret-at-least-32-characters
HOST=127.0.0.1
PORT=42069
# DATABASE_PATH=users.sqlite
# AUTH_DEBUG=true
# PUBLIC_ORIGIN=https://poker.example.com
# Comma-separated IPs/subnets of proxies you control; unset means no trust.
# TRUST_PROXY=loopback