Add basic feature to mirror POS DB in mysql or postgresql

but only supported for Catapult so far
This commit is contained in:
Lance Edgar 2020-09-25 17:54:26 -05:00
parent 3e66aa79da
commit 48960d961b
7 changed files with 107 additions and 10 deletions

View file

@ -21,20 +21,27 @@ env.machine_is_live = False
# stable
##############################
# for a list of possible time zone values, see
# https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
env.timezone = 'America/Chicago'
# set this to the POS system you wish to integrate with, if any
env.theo_integrates_with = None
#env.theo_integrates_with = 'corepos'
#env.theo_integrates_with = 'catapult'
#env.theo_integrates_with = 'locsms'
# if you wish to "mirror" your POS DB, set this to the type of DB service which
# should contain the mirror. this mirror DB will exist alongside Theo, i.e. on
# the same machine. (note that this feature only works for Catapult)
env.theo_mirror_posdb = None
#env.theo_mirror_posdb = 'mysql'
#env.theo_mirror_posdb = 'postgresql'
# default admin user credentials for Theo web app
env.theo_admin_username = 'username'
env.theo_admin_password = 'password'
# for a list of possible time zone values, see
# https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
env.timezone = 'America/Chicago'
# default sender and recipients for all emails
env.email_default_sender = 'rattail@localhost'
env.email_default_recipients = ['root@localhost']
@ -42,6 +49,9 @@ env.email_default_recipients = ['root@localhost']
# this is for the 'rattail' user within PostgreSQL
env.password_postgresql_rattail = 'password'
# this is for the 'rattail' user within MySQL (if needed for mirror DB)
env.password_mysql_rattail = 'password'
# this is used to secure the user session and/or cookie for the web app
env.theo_beaker_secret = 'ABCDEFGHIJKLMNOPQRST'