# -*- coding: utf-8 -*- from globaleaks import __version__, DATABASE_VERSION from globaleaks.models.config_desc import Unicode, Int, Bool from globaleaks.utils.crypto import GCE from globaleaks.utils.utility import datetime_null, iso_strf_time GLConfig_v_35 = { 'private': { 'receipt_salt': Unicode(default=GCE.generate_salt()), 'smtp_password': Unicode(default=u'yes_you_really_should_change_me'), 'version': Unicode(default=Unicode(__version__)), 'version_db': Int(default=DATABASE_VERSION), 'https_priv_key': Unicode(), 'https_priv_gen': Bool(default=False), 'https_csr': Unicode(), 'https_cert': Unicode(), 'https_chain': Unicode(), 'https_dh_params': Unicode(), 'https_enabled': Bool(default=False), }, 'notification': { 'server': Unicode(default=u'demo.globaleaks.org'), 'port': Int(default=9267), 'username': Unicode(default=u'hey_you_should_change_me'), # See smtp_password in private for password 'source_email': Unicode(default=u'*****@*****.**'),
# -*- coding: utf-8 -*- from globaleaks import __version__, DATABASE_VERSION from globaleaks.models.config_desc import Unicode, Int, Bool from globaleaks.utils.crypto import GCE from globaleaks.utils.utility import datetime_null, iso_strf_time GLConfig_v_35 = { 'private': { 'receipt_salt': Unicode(default=GCE.generate_salt()), 'smtp_password': Unicode(default='yes_you_really_should_change_me'), 'version': Unicode(default=Unicode(__version__)), 'version_db': Int(default=DATABASE_VERSION), 'https_priv_key': Unicode(), 'https_priv_gen': Bool(default=False), 'https_csr': Unicode(), 'https_cert': Unicode(), 'https_chain': Unicode(), 'https_dh_params': Unicode(), 'https_enabled': Bool(default=False), }, 'notification': { 'server': Unicode(default='demo.globaleaks.org'), 'port': Int(default=9267), 'username': Unicode(default='hey_you_should_change_me'), # See smtp_password in private for password 'source_email': Unicode(default='*****@*****.**'),
from globaleaks.models.validators import shorttext_v, longtext_v, \ natnum_v, range_v from globaleaks.security import generateRandomSalt as salt from globaleaks.utils.utility import datetime_null GLConfig_v_35 = { 'private': { 'receipt_salt': Unicode(validator=shorttext_v, default=salt()), # is always customized 'smtp_password': Unicode(validator=shorttext_v, default=u'yes_you_really_should_change_me'), 'version': Unicode(default=Unicode(__version__)), 'version_db': Int(default=DATABASE_VERSION), 'https_priv_key': Unicode(), 'https_priv_gen': Bool(default=False), 'https_csr': Unicode(), 'https_cert': Unicode(), 'https_chain': Unicode(), 'https_dh_params': Unicode(), 'https_enabled': Bool(default=False), },