Prepare Noggin & FASJSON for prod

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2021-03-22 14:57:41 +01:00 committed by abompard
parent f952b7a715
commit 2269f0ece1
12 changed files with 36 additions and 31 deletions

View file

@ -31,11 +31,14 @@ spec:
triggers:
- type: ConfigChange
- type: ImageChange
- type: GitHub
{% if noggin_stg_github_secret is defined and env == 'staging' %}
- type: GitHub
github:
secret: "{{ noggin_stg_github_secret }}"
{% elif noggin_github_secret is defined and env == 'production' %}
github:
secret: "{{ noggin_github_secret }}"
{% endif %}
{% if noggin_github_secret is defined and env == 'production' %}
# Do we really want auto rebuilds in prod?
# - type: GitHub
# github:
# secret: "{{ noggin_github_secret }}"
{% endif %}

View file

@ -46,5 +46,5 @@ SECRET_KEY = from_file('/etc/noggin-secrets/session').encode('utf-8')
# Spam checking
# BASSET_URL = None
# Disable registration until the account import is complete
REGISTRATION_OPEN = False
# To disable registration:
# REGISTRATION_OPEN = False