mirror of
https://github.com/Chewbaccalakis/rfid-database.git
synced 2026-09-09 16:01:56 -07:00
The SSO button required NEXT_PUBLIC_AUTH_OIDC_ENABLED, which is baked at build time and silently fails under Docker runtime env. Drive the login button from server-side AUTH_OIDC_* instead, and document IdP redirect URI + AUTH_URL setup. Co-authored-by: Cursor Agent <[email protected]>
36 lines
1.2 KiB
Bash
36 lines
1.2 KiB
Bash
AUTH_SECRET=change-me-to-a-long-random-string
|
|
|
|
# Public URL of this app (important behind reverse proxies / Docker)
|
|
# Example: http://localhost:3000 or https://rfid.example.com
|
|
# AUTH_URL=http://localhost:3000
|
|
# AUTH_TRUST_HOST=true
|
|
|
|
# Optional: path to SQLite file (default ./data/rfid.db)
|
|
# RFID_DB_PATH=./data/rfid.db
|
|
|
|
# Docker Compose published port (default 3000)
|
|
# RFID_PORT=3000
|
|
|
|
# Optional first-boot user when using Docker entrypoint
|
|
# [email protected]
|
|
# CREATE_USER_PASSWORD=changeme
|
|
# CREATE_USER_NAME=Admin
|
|
|
|
# Optional OIDC (Authentik, Keycloak, Authelia, Google, etc.)
|
|
# Setting these three enables the "Sign in with SSO" button automatically
|
|
# (no NEXT_PUBLIC_* flag needed).
|
|
#
|
|
# In your IdP, create a confidential OIDC client with redirect URI:
|
|
# {AUTH_URL}/api/auth/callback/oidc
|
|
# e.g. http://localhost:3000/api/auth/callback/oidc
|
|
#
|
|
# AUTH_OIDC_ISSUER must be the issuer that serves
|
|
# {issuer}/.well-known/openid-configuration
|
|
# Authentik example: https://sso.example.com/application/o/rfid/
|
|
# Keycloak example: https://sso.example.com/realms/myrealm
|
|
#
|
|
# AUTH_OIDC_ISSUER=https://sso.example.com/application/o/rfid/
|
|
# AUTH_OIDC_CLIENT_ID=
|
|
# AUTH_OIDC_CLIENT_SECRET=
|
|
# AUTH_OIDC_NAME=Authentik
|