New registration config.

master
Kaitlyn Parkhurst 3 years ago
parent aa5e196481
commit 89a0ffde09
  1. 20
      ansible/env/example/inventory.yml
  2. 8
      ansible/roles/mjb-role-webapp/templates/mjb.yml.j2

@ -85,6 +85,26 @@ all:
# These secrets are used for the session encryption
secrets: "{{ vault_panel_config_secrets }}"
# There are three user registration systems:
#
# 1. open allows anyone to register an account, if they can access the website.
# 2. invite allows anyone to register an account, if they can access the website
# and have an invite code that is provided to them by an admin.
# 3. stripe allows anyone to register an account, if they can make a subscription
# with stripe.
#
# Any registration system that is enabled can be used.
#
# Whichever system is set to the default will be what is used when users click
# 'register' on the website.
#
# Valid values for default are 'stripe', 'invite', 'open'.
register:
default: stripe
enable_stripe: 1
enable_invite: 1
enable_open: 0
# Configuration specific to the panel server.
panel:
hosts:

@ -18,3 +18,11 @@ secrets:
{% for secret in panel_config.secrets %}
- {{ secret }}
{% endfor %}
register:
# If a user clicks 'register' which system should they go to?
default: {{ panel_config.register.default }}
# Valid registration systems: stripe, invite, open
enable_stripe: {{ panel_config.register.enable_stripe }}
enable_invite: {{ panel_config.register.enable_invite }}
enable_open: {{ panel_config.register.enable_open }}

Loading…
Cancel
Save