Skip to main content

Alliance Auth Service module for Wiki JS

Project description

Wiki-JS service

Simple User and group management for Wiki JS as a service of AllianceAuth

Setup

  1. install and setup your Wiki.js instance from the Wiki Docs
  2. activate venv
  3. pip install -U allianceauth-wiki-js
  4. add 'wikijs', to your INSTALLED_APPS in your projects local.py
  5. generate a Full Access API key iun the wiki with maximum expiration be sure to copy it as the key wont be shown again.
  6. add the settings ( outlined below ) to your local.py
  7. run migrations and restart auth
  8. setup permissions ( outlined below )

Permissions

Perm Codename Admin Frontend
Can access the WikiJS service access_wikijs - Gives access to Wiki.js service
Can add wiki js - Admin add -
Can change wiki js - Admin Edit -
Can delete wiki js - Admin Delete -
Can view wiki js - Admin View -

Settings

Setting default Description
WIKIJS_API_KEY "" your global API key from the wiki admin section
WIKIJS_URL "" You Wiki's base URL
WIKIJS_AADISCORDBOT_INTEGRATION True Enables an AADiscordbot cog with the ability to search the wiki

If you have issues with auth not being able to access the wiki due to SSL/redirection or similar. ( Cloudlfair can cause issues)

Setting default Description
WIKIJS_API_URL WIKIJS_URL URL Overide for API access

add this setting to your local py with a direct link to the wiki

# if auth is on the same box as wiki
WIKIJS_API_URL = "http://localhost:3000"

# if auth is on a different machine you could use the public ip adress of that machine.
WIKIJS_API_URL = "http://10.0.0.150:3000"

FAQ

  • I lost admin when i registered my admin user.
    • add a group called Administrators to your auth instance and give it to anyone who needs admin on the wiki.
  • I cant lock down my wiki to registered members only.
    • i had to delete a row from the database manually to remove the guest roles permissions. Ask in the AA discord.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

allianceauth-wiki-js-0.0.8.tar.gz (18.7 kB view details)

Uploaded Source

File details

Details for the file allianceauth-wiki-js-0.0.8.tar.gz.

File metadata

  • Download URL: allianceauth-wiki-js-0.0.8.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.7

File hashes

Hashes for allianceauth-wiki-js-0.0.8.tar.gz
Algorithm Hash digest
SHA256 974f471e200c0c696be3851d1bb349f3ec93432f8b9913363ebe4253672560d1
MD5 2ce44d225039ca19d77dec512135a9e1
BLAKE2b-256 a234de109f17b8a1d40da0e5dfd135e54ead6ec7cafe6407248d87d9804237dd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page