2020-02-02 06:55:39 +00:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
|
|
|
"""Enable dev default config"""
|
|
|
|
|
|
|
|
import json
|
|
|
|
|
2020-03-10 02:43:18 +00:00
|
|
|
input("enter to continue") # hack to avoid vscode term input
|
|
|
|
|
2020-02-02 06:55:39 +00:00
|
|
|
conf = json.load(open('static-data/default_config.json', 'r'))
|
|
|
|
|
2020-03-03 11:55:50 +00:00
|
|
|
block_pow = int(input("Block POW level:"))
|
|
|
|
|
2020-03-19 06:01:05 +00:00
|
|
|
conf['transports']['tor'] = False
|
|
|
|
if input('Use Tor? y/n').lower() == 'y':
|
|
|
|
conf['transports']['tor'] = True
|
|
|
|
if input("Reuse Tor? y/n:").lower() == 'y':
|
|
|
|
conf['tor']['use_existing_tor'] = True
|
|
|
|
conf['tor']['existing_control_port'] = int(input("Enter existing control port:"))
|
|
|
|
conf['tor']['existing_control_password'] = input("Tor pass:")
|
|
|
|
conf['tor']['existing_socks_port'] = int(input("Existing socks port:"))
|
2020-02-02 06:55:39 +00:00
|
|
|
|
|
|
|
conf['general']['insert_deniable_blocks'] = False
|
2020-02-04 02:08:06 +00:00
|
|
|
conf['general']['random_bind_ip'] = False
|
|
|
|
conf['onboarding']['done'] = True
|
2020-03-03 11:55:50 +00:00
|
|
|
conf['general']['minimum_block_pow'] = block_pow
|
|
|
|
conf['general']['minimum_send_pow'] = block_pow
|
2020-02-08 09:07:07 +00:00
|
|
|
conf['log']['file']['remove_on_exit'] = False
|
2020-06-27 23:00:31 +00:00
|
|
|
conf['ui']['animated_background'] = False
|
2020-03-31 09:00:48 +00:00
|
|
|
if input('Stat reporting? y/n') == 'y':
|
|
|
|
conf['statistics']['i_dont_want_privacy'] = True
|
|
|
|
conf['statistics']['server'] = input('Statistics server')
|
2020-02-02 06:55:39 +00:00
|
|
|
|
|
|
|
json.dump(conf, open('static-data/default_config.json', 'w'), sort_keys=True, indent=4)
|
|
|
|
|