config: bootstrap default configs for license file import
This commit is contained in:
parent
c859407811
commit
ca7a00c250
1 changed files with 7 additions and 1 deletions
|
|
@ -52,7 +52,8 @@ def sanitize_settings_and_apply_defaults(global_config, settings):
|
|||
default=False,
|
||||
parser='bool')
|
||||
|
||||
logging_conf = jn(os.path.dirname(global_config.get('__file__')), 'logging.ini')
|
||||
ini_loc = os.path.dirname(global_config.get('__file__'))
|
||||
logging_conf = jn(ini_loc, 'logging.ini')
|
||||
settings_maker.enable_logging(logging_conf, level='INFO' if debug_enabled else 'DEBUG')
|
||||
|
||||
# Default includes, possible to change as a user
|
||||
|
|
@ -95,6 +96,11 @@ def sanitize_settings_and_apply_defaults(global_config, settings):
|
|||
settings_maker.make_setting('gzip_responses', False, parser='bool')
|
||||
settings_maker.make_setting('startup.import_repos', 'false', parser='bool')
|
||||
|
||||
# License settings.
|
||||
settings_maker.make_setting('license.hide_license_info', False, parser='bool')
|
||||
settings_maker.make_setting('license.import_path', jn(ini_loc, 'rhodecode_enterprise.license'))
|
||||
settings_maker.make_setting('license.import_path_mode', 'if-missing')
|
||||
|
||||
# statsd
|
||||
settings_maker.make_setting('statsd.enabled', False, parser='bool')
|
||||
settings_maker.make_setting('statsd.statsd_host', 'statsd-exporter', parser='string')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue