Skip to content

a more fine grained way of administrate discourse (uses sso)

Notifications You must be signed in to change notification settings

glanzel/discourseAdmin

Repository files navigation

discourseAdmin

a more fine grained way of administrate discourse (uses sso)

A. install

  1. clone the git:
    1.1. (optional) python3 -m venv /path/to/new/clone/directory source /env/bin/activate
  2. install requirements: pip3 install -r requirements.txt -f . (inside the clone directory)
  3. create 2 files from the dsso/*.template files
  4. create the database
  5. populate the database: python3 manage.py migrate

B. development start

python3 manage.py runserver 0.0.0.0:4911 -> should start on localhost:4911

C. Update

  1. pull the git:
  2. update requirements: pip3 install -r requirements.txt -f . (inside the clone directory)
  3. update the database: python3 manage.py migrate

D. Production Setup

  1. install ngnix
  2. install gunicorn3 2.1. Uncomment and modify the wsgi.py file (optional when using python venv -> A.1.1)
  3. collect static files "python3 manage.py collectstatic"
  4. create an ngnix server diretive inside your ngnix.conf file (use ngnix.conf.example as template)
  5. create an service file (use dsso.service.example as template)
  6. sudo systemctl start dsso

E. Install/Configure Discourse

  1. Install Discourse locally
  2. Configure Discourse for SSO
  3. Set the DISCOURSE_XXXX Variables in settings_local.py

About

a more fine grained way of administrate discourse (uses sso)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published