Commit 2e9f6b8b authored by Daniel Dehennin's avatar Daniel Dehennin

feat(oauth2): install OAuth2 plugin when enabled

parent 93efc81a
......@@ -96,6 +96,9 @@ hooks:
cd: $home/plugins
cmd:
- git clone https://github.com/discourse/docker_manager.git
{%- if discourse | traverse('oauth2:enabled', False) | to_bool %}
- git clone {{ discourse | traverse('oauth2:git-url') }}
{%- endif %}
## Any custom commands to run after building
run:
......
......@@ -27,6 +27,9 @@ values:
contact_email: ~
contact_url: ~
# users: {}
oauth2:
enabled: false
git-url: 'https://github.com/discourse/discourse-oauth2-basic.git'
launcher:
rebuild_cmd: './launcher rebuild app'
bootstrap_cmd: './launcher bootstrap app'
......
......@@ -22,6 +22,8 @@ discourse:
contact_email: william.shakespears@example.net
contact_url: https://shakespears.example.net
default_trust_level: '1'
oauth2:
enabled: true
users:
william:
# Password reset mail is sent by default
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment