# This file, when named as ".env" in the root of your BookStack install
# folder, is used for the core configuration of the application.
# By default this file contains the most common required options but
# a full list of options can be found in the '.env.example.complete' file.

# NOTE: If any of your values contain a space or a hash you will need to
# wrap the entire value in quotes. (eg. MAIL_FROM_NAME="BookStack Mailer")

# Application key
# Used for encryption where needed.
# Run `php artisan key:generate` to generate a valid key.
APP_KEY=base64:/hgs+YzDwL/0nGNwAwF5gu5fFvaZcGZPFJjc9esn9cY=

# Application URL
# This must be the root URL that you want to host BookStack on.
# All URLs in BookStack will be generated using this value
# to ensure URLs generated are consistent and secure.
# If you change this in the future you may need to run a command
# to update stored URLs in the database. Command example:
# php artisan bookstack:update-url https://old.example.com https://new.example.com
APP_URL=https://navigator.st-anna-realschule.de
APP_LANG=de

# Database details
DB_HOST=localhost
DB_DATABASE=faq
DB_USERNAME=faq
DB_PASSWORD=adeleda

# Mail system to use
# Can be 'smtp' or 'sendmail'
MAIL_DRIVER=smtp

# Mail sender details
MAIL_FROM_NAME="FAQ-St.-Anna"
MAIL_FROM=faq@st-anna-realschule.de

# SMTP mail options
# These settings can be checked using the "Send a Test Email"
# feature found in the "Settings > Maintenance" area of the system.
# For more detailed documentation on mail options, refer to:
# https://www.bookstackapp.com/docs/admin/email-webhooks/#email-configuration
MAIL_HOST=mail.your-server.de
MAIL_PORT=587
MAIL_USERNAME=faq@st-anna-realschule.de
MAIL_PASSWORD=K775g63Pew26sJE6
MAIL_ENCRYPTION=tls



APP_THEME=eltern


# Set OIDC to be the authentication method
#AUTH_METHOD=standard
AUTH_METHOD=oidc
# Control if BookStack automatically initiates login via your OIDC system 
# if it's the only authentication method. Prevents the need for the
# user to click the "Login with x" button on the login page.
# Setting this to true enables auto-initiation.
AUTH_AUTO_INITIATE=false

# Set the display name to be shown on the login button.
# (Login with <name>)
OIDC_NAME=ISERV

# Name of the claims(s) to use for the user's display name.
# Can have multiple attributes listed, separated with a '|' in which 
# case those values will be joined with a space.
# Example: OIDC_DISPLAY_NAME_CLAIMS=given_name|family_name
OIDC_DISPLAY_NAME_CLAIMS=name

# OAuth Client ID to access the identity provider
OIDC_CLIENT_ID=485_5wdn17kqguwwogwwwwgokocck0og0sw8ks4oskg408s8s8gwkk
# OAuth Client Secret to access the identity provider
OIDC_CLIENT_SECRET=e7ayuo9uqm0ws8kss0w40ckcks4sg4o4s0cwoww40848sks88
# Issuer URL
# Must start with 'https://'
OIDC_ISSUER=https://star-stadtlohn.de

# The "end session" (RP-initiated logout) URL to call during BookStack logout.

# By default this is false which disables RP-initiated logout.
# Setting to "true" will enable logout if found as supported by auto-discovery.
# Otherwise, this can be set as a specific URL endpoint.
OIDC_END_SESSION_ENDPOINT=false

# Enable auto-discovery of endpoints and token keys.
# As per the standard, expects the service to serve a 
# `<issuer>/.well-known/openid-configuration` endpoint.
OIDC_ISSUER_DISCOVER=false

############################################################
## NOTE: The below are only needed if not using the above ##
##       auto-discovery option.                           ##
############################################################

# Path to identity provider token signing public RSA key
OIDC_PUBLIC_KEY=file:///var/www/html/faq/bookstack/keys/idp-public-key.pem
#OIDC_PUBLIC_KEY=https://star-stadtlohn.de/iserv/public/jwk

# Full URL to the OIDC authorize endpoint
OIDC_AUTH_ENDPOINT=https://star-stadtlohn.de/iserv/oauth/v2/auth

# Full URL to the OIDC token endpoint
OIDC_TOKEN_ENDPOINT=https://star-stadtlohn.de/iserv/oauth/v2/token


# Full URL to the OIDC userinfo endpoint
# Won't be used if all required claims are provided in the ID token.
OIDC_USERINFO_ENDPOINT=https://star-stadtlohn.de/iserv/public/oauth/userinfo

# Enable OIDC group sync.
OIDC_USER_TO_GROUPS=true
