Site Configuration & Administration - e-Learning-by-SSE/nm-self-learning GitHub Wiki

Configuration

All other possible settings for NEXT.js and Node.js are also supported. The tables below represent excerpts of the possible configurations.

A minimal example for an .env file can be found in .env.example in the root folder.

Setup Requirements

env-Key Default Description Example
DATABASE_URL none Database access postgresql://username:password@localhost:5432/SelfLearningDb
NEXTAUTH_URL none Path to nextauth. Include full endpoint if necessary http://localhost:4200 or https://example.org/selflearn/api/auth
NEXTAUTH_SECRET none Encryption for the auth token. Should be strong Generate one via openssl rand -base64 32

Keycloak

Minio

Analytics

Plausible is an open-source, lightweight, and privacy-focused alternative to Google Analytics, designed to track website usage statistics without compromising user privacy. Motamo is supported as well.

env-Key Default Description Example
NEXT_PUBLIC_PLAUSIBLE_OWN_DOMAIN
NEXT_PUBLIC_PLAUSIBLE_CUSTOM_INSTANCE
NEXT_PUBLIC_MATOMO_URL
NEXT_PUBLIC_MATOMO_SITE_ID

Miscellaneous

env-Key Default Description Example
NEXT_ASSET_PATH "/" Defines static _next path. Should match NEXT_PUBLIC_BASE_PATH
NEXT_PUBLIC_BASE_PATH "/" Define additional path if the app is not on domain root /selflearn
NEXT_PUBLIC_SYSTEM_MSG none 120 seconds dropdown message for every user '<a href="https://example.org"> More Information here</a>'

Administration