nuancier: split out prod and stg access/passwords.

Currently both prod and stg were using the same credentials. Move to
using different for each.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2022-09-19 13:06:26 -07:00
parent 946e51e41c
commit f46a6c8f2a
3 changed files with 20 additions and 0 deletions

View file

@ -11,7 +11,11 @@ script_location = /usr/share/nuancier/alembic
# the 'revision' command, regardless of autogenerate
# revision_environment = false
{% if env == "staging" %}
sqlalchemy.url = postgresql://{{ nuancier_stg_db_admin_user }}:{{ nuancier_stg_db_admin_pass }}@{{ nuancier_stg_db_host }}/{{ nuancier_stg_db_name }}
{% else %}
sqlalchemy.url = postgresql://{{ nuancier_db_admin_user }}:{{ nuancier_db_admin_pass }}@{{ nuancier_db_host }}/{{ nuancier_db_name }}
{% endif %}
# Logging configuration

View file

@ -3,10 +3,18 @@
import os
### Secret key for the Flask application
{% if env == "staging" %}
SECRET_KEY='{{ nuancier_stg_secret_key }}'
{% else %}
SECRET_KEY='{{ nuancier_secret_key }}'
{% endif %}
### url to the database server:
{% if env == "staging" %}
DB_URL='postgresql://{{ nuancier_stg_db_user }}:{{ nuancier_stg_db_pass }}@{{ nuancier_stg_db_host }}/{{ nuancier_stg_db_name }}'
{% else %}
DB_URL='postgresql://{{ nuancier_db_user }}:{{ nuancier_db_pass }}@{{ nuancier_db_host }}/{{ nuancier_db_name }}'
{% endif %}
### The FAS groups in which the admin of nuancier are
### This can either be a single group or multiple, defined between

View file

@ -3,10 +3,18 @@
import os
### Secret key for the Flask application
{% if env == "staging" %}
SECRET_KEY='{{ nuancier_stg_secret_key }}'
{% else %}
SECRET_KEY='{{ nuancier_secret_key }}'
{% endif %}
### url to the database server:
{% if env == "staging" %}
DB_URL='postgresql://{{ nuancier_stg_db_admin_user }}:{{ nuancier_stg_db_admin_pass }}@{{ nuancier_stg_db_host }}/{{ nuancier_stg_db_name }}'
{% else %}
DB_URL='postgresql://{{ nuancier_db_admin_user }}:{{ nuancier_db_admin_pass }}@{{ nuancier_db_host }}/{{ nuancier_db_name }}'
{% endif %}
### The FAS groups in which the admin of nuancier are
### This can either be a single group or multiple, defined between