40 lines
1.3 KiB
ReStructuredText
40 lines
1.3 KiB
ReStructuredText
credentials plugin for `Tutor <https://docs.tutor.overhang.io>`__
|
|
===================================================================================
|
|
|
|
Installation
|
|
------------
|
|
|
|
::
|
|
|
|
pip install git+https://github.com/lpm0073/tutor-contrib-credentials
|
|
|
|
Configuration
|
|
-------------
|
|
|
|
- ``CREDENTIALS_HOST`` (default: ``"credentials.{{ LMS_HOST }}"``)
|
|
- ``CREDENTIALS_MYSQL_PASSWORD``: ``"{{ 8|random_string }}"``)
|
|
- ``CREDENTIALS_SECRET_KEY`` (default: ``"{{ 20|random_string }}"``)
|
|
- ``CREDENTIALS_OAUTH2_SECRET`` (default: ``"{{ 8|random_string }}"``)
|
|
- ``CREDENTIALS_DOCKER_IMAGE`` (default: ``"{{ DOCKER_REGISTRY }}lpm0073/openedx-credentials:{{ TUTOR_VERSION }}"``)
|
|
- ``CREDENTIALS_MYSQL_DATABASE`` (default: ``"credentials"``)
|
|
- ``CREDENTIALS_MYSQL_USERNAME`` (default: ``"credentials"``)
|
|
- ``CREDENTIALS_OAUTH2_KEY`` (default: ``"credentials"``)
|
|
- ``CREDENTIALS_EXTRA_PIP_REQUIREMENTS`` (default: ``[]``)
|
|
|
|
|
|
Usage
|
|
-----
|
|
|
|
::
|
|
|
|
tutor plugins enable credentials
|
|
tutor config save --set CREDENTIALS_DOCKER_IMAGE=URI_OF_YOUR_REPOSITORY
|
|
tutor images build credentials
|
|
tutor images push credentials
|
|
docker tag YOUR-IMAGE-NAME YOUR-IMAGE-NAME:latest
|
|
docker push YOUR-IMAGE-NAME:latest
|
|
|
|
License
|
|
-------
|
|
|
|
This software is licensed under the terms of the AGPLv3. |