Final README improvements - add Docker Hub image option and detailed OpenID Connect examples for Authentik, Keycloak, and Auth0

This commit is contained in:
Ryderjj89
2025-09-14 12:44:12 -04:00
parent 2f4ee82a5b
commit d430de915a

View File

@@ -41,6 +41,18 @@ A Docker-based ESV Bible application with markdown content, featuring a React fr
### Basic Setup (No Authentication) ### Basic Setup (No Authentication)
#### Option 1: Use Pre-built Docker Image (Recommended)
1. **Run directly from Docker Hub**
```bash
docker run -d -p 3000:3000 -v esv-bible-data:/app/backend/data --name esv-bible ryderjj89/esv-bible:latest
```
2. **Access the application**
- Open http://localhost:3000 in your browser
#### Option 2: Build from Source
1. **Clone the repository** 1. **Clone the repository**
```bash ```bash
git clone https://github.com/Ryderjj89/esv-bible.git git clone https://github.com/Ryderjj89/esv-bible.git
@@ -93,14 +105,17 @@ To enable user authentication and features like favorites and synced preferences
Create a `.env` file in the root directory with the following variables: Create a `.env` file in the root directory with the following variables:
#### Example Configuration (Authentik)
```env ```env
# OpenID Connect Configuration (Required for authentication) # OpenID Connect Configuration (Required for authentication)
OIDC_ISSUER=https://your-oidc-provider.com # Example using Authentik - replace auth.example.com with your domain
OIDC_CLIENT_ID=your-client-id OIDC_ISSUER=https://auth.example.com/application/o/esv-bible/
OIDC_CLIENT_SECRET=your-client-secret OIDC_CLIENT_ID=your-client-id-from-authentik
OIDC_AUTH_URL=https://your-oidc-provider.com/auth OIDC_CLIENT_SECRET=your-client-secret-from-authentik
OIDC_TOKEN_URL=https://your-oidc-provider.com/token OIDC_AUTH_URL=https://auth.example.com/application/o/authorize/
OIDC_USERINFO_URL=https://your-oidc-provider.com/userinfo OIDC_TOKEN_URL=https://auth.example.com/application/o/token/
OIDC_USERINFO_URL=https://auth.example.com/application/o/userinfo/
# Optional Configuration # Optional Configuration
OIDC_CALLBACK_URL=/auth/callback OIDC_CALLBACK_URL=/auth/callback
@@ -109,6 +124,24 @@ FRONTEND_URL=http://localhost:3000
NODE_ENV=production NODE_ENV=production
``` ```
#### Other Provider Examples
**Keycloak:**
```env
OIDC_ISSUER=https://keycloak.example.com/realms/your-realm
OIDC_AUTH_URL=https://keycloak.example.com/realms/your-realm/protocol/openid-connect/auth
OIDC_TOKEN_URL=https://keycloak.example.com/realms/your-realm/protocol/openid-connect/token
OIDC_USERINFO_URL=https://keycloak.example.com/realms/your-realm/protocol/openid-connect/userinfo
```
**Auth0:**
```env
OIDC_ISSUER=https://your-tenant.auth0.com/
OIDC_AUTH_URL=https://your-tenant.auth0.com/authorize
OIDC_TOKEN_URL=https://your-tenant.auth0.com/oauth/token
OIDC_USERINFO_URL=https://your-tenant.auth0.com/userinfo
```
## Features When Authenticated ## Features When Authenticated
### User Preferences ### User Preferences