Skip to content

Latest commit

 

History

History
138 lines (105 loc) · 4.37 KB

File metadata and controls

138 lines (105 loc) · 4.37 KB

DokuWiki DokuWiki

Basic Information

Simple to use and highly versatile wiki software

Category Essentials
Platform podman
Version version-2025-05-14b
Site link https://www.dokuwiki.org/
Nix Homelab Module modules/features/dokuwiki

What is DokuWiki?

DokuWiki is a simple to use and highly versatile open-source wiki software that doesn't require a database. It stores all content in plain text files, making it extremely lightweight, portable, and easy to backup.

DokuWiki is perfect for documentation, knowledge bases, intranets, and project collaboration without the overhead of a database.

DokuWiki interface

Why Use DokuWiki?

Simple, powerful wiki without database complexity

Key benefits:

  • No Database Required: All content stored in flat files for easy backups
  • Clean Syntax: Easy-to-learn wiki markup that's readable and powerful
  • Extensive Plugins: Thousands of plugins to extend functionality
  • Access Control: Granular permissions per page, namespace, or user group
  • Low Resource Usage: Runs efficiently with minimal server resources
  • SSO Integration: Works with Authentik for OAuth authentication

Configuration

Configuration files

  • /data/podman/dokuwiki/config/dokuwiki/conf/local.php
  • /data/podman/dokuwiki/config/dokuwiki/conf/plugins.local.php

** Reset Admin Password**

If you need to reset the admin password (before OAuth is set up):

sudo -u dokuwiki nano /data/podman/dokuwiki/config/dokuwiki/conf/users.auth.php

Or regenerate using DokuWiki's password hash generator at: https://encyclopedie.ma-cabane.eu/doku.php?id=wiki:password

Plugin Setup:

After initial installation, install OAuth plugins (oauth and oauthgeneric) from the DokuWiki admin interface and configure with Authentik credentials.

Plugin Installation

Install the following plugins from the DokuWiki admin interface:

  1. Go to AdminExtension Manager
  2. Search and install:
    • oauth - OAuth authentication plugin
    • oauthgeneric - Generic OAuth provider support

Plugin Configuration

Configure the OAuth plugins in DokuWiki admin panel:

plugin:oauth settings

  • register-on-auth: Enabled
    • Automatically register users on first login

plugin:oauthgeneric settings

OAuth2 Secret:

# Get OAuth2 client secret for Authentik configuration
clan vars get houston dokuwiki/oauth2-client-secret

Navigate to AdminConfiguration Manageroauthgeneric:

  • Set plugin»oauthgeneric»key to the Client ID from authentik
  • Set plugin»oauthgeneric»secret to the Client Secret from authentik
  • Set plugin»oauthgeneric»authurl to https://douane.ma-cabane.eu/application/o/authorize/
  • Set plugin»oauthgeneric»tokenurl to https://douane.ma-cabane.eu/application/o/token/
  • Set plugin»oauthgeneric»userurl to https://douane.ma-cabane.eu/application/o/userinfo/
  • Set plugin»oauthgeneric»authmethod to Bearer Header
  • Set plugin»oauthgeneric»scopes to email, openid, profile, offline_access
  • Select plugin»oauthgeneric»needs-state
  • Set plugin»oauthgeneric»json-user to preferred_username
  • Set plugin»oauthgeneric»json-name to name
  • Set plugin»oauthgeneric»json-mail to email
  • Set plugin»oauthgeneric»json-grps to groups

Learn More