moving to release with better settings and onboarding

This commit is contained in:
Kevin Froman 2020-02-03 20:08:06 -06:00
parent 09617dc563
commit 68074d4dd8
9 changed files with 23 additions and 15 deletions

View File

@ -18,5 +18,4 @@ The Onionr [whitepaper](whitepaper.md) is the best place to start both for users
* [Technical overview](dev/overview.md) * [Technical overview](dev/overview.md)
* [Project layout](dev/layout.md) * [Project layout](dev/layout.md)
* [Plugin development guide](dev/plugins.md) * [Plugin development guide](dev/plugins.md)
* [Testing](dev/testing.md)
* [Auto generated API docs (HTML)](html/onionr/index.html) * [Auto generated API docs (HTML)](html/onionr/index.html)

View File

@ -1,8 +1,9 @@
* add GUI config editor * add GUI config editor
* add multi-device forward secrecy * add multi-device forward secrecy
* document anonymity & security theory * document anonymity & security theory
* document usage * document usage
* add offline mode
* encrypt local data and keys * encrypt local data and keys
* ensure accessibility for Onionr web UI * ensure accessibility for Onionr web UI
* make forward secrecy compatible with multiple devices * make forward secrecy compatible with multiple devices

View File

@ -14,6 +14,9 @@ conf['tor']['existing_socks_port'] = 0
conf['general']['dev_mode'] = False conf['general']['dev_mode'] = False
conf['general']['insert_deniable_blocks'] = True conf['general']['insert_deniable_blocks'] = True
conf['general']['random_bind_ip'] = True conf['general']['random_bind_ip'] = True
conf['onboarding']['done'] = False
conf['general']['minimum_block_pow'] = 6
conf['general']['minimum_send_pow'] = 6
json.dump(conf, open('static-data/default_config.json', 'w'), sort_keys=True, indent=4) json.dump(conf, open('static-data/default_config.json', 'w'), sort_keys=True, indent=4)

View File

@ -14,7 +14,10 @@ if input("Reuse Tor? y/n:").lower() == 'y':
conf['general']['dev_mode'] = True conf['general']['dev_mode'] = True
conf['general']['insert_deniable_blocks'] = False conf['general']['insert_deniable_blocks'] = False
conf['general']['general.random_bind_ip'] = False conf['general']['random_bind_ip'] = False
conf['onboarding']['done'] = True
conf['general']['minimum_block_pow'] = 4
conf['general']['minimum_send_pow'] = 4
json.dump(conf, open('static-data/default_config.json', 'w'), sort_keys=True, indent=4) json.dump(conf, open('static-data/default_config.json', 'w'), sort_keys=True, indent=4)

View File

@ -44,6 +44,9 @@ def set_config_from_onboarding(config_settings: OnboardingConfig):
'networkContrib'): 'networkContrib'):
config.set('general.security_level', 1) config.set('general.security_level', 1)
if get(config_settings, 'localThreat'):
config.set('general.security_level', 3)
config.set('ui.theme', 'light') config.set('ui.theme', 'light')
if get(config_settings, 'useDark'): if get(config_settings, 'useDark'):
config.set('ui.theme', 'dark') config.set('ui.theme', 'dark')

View File

@ -50,8 +50,7 @@ WSGI_SERVER_REQUEST_TIMEOUT_SECS = 120
MAX_NEW_PEER_QUEUE = 1000 MAX_NEW_PEER_QUEUE = 1000
# Begin OnionrValues migrated values # Begin OnionrValues migrated values
"""Make announce take a few seconds (on average) to compute to discourage excessive node announcements"""
ANNOUNCE_POW = 6
"""30 days is plenty of time for someone to decide to renew a block""" """30 days is plenty of time for someone to decide to renew a block"""
DEFAULT_EXPIRE = 2592000 DEFAULT_EXPIRE = 2592000
# Metadata header section length limits, in bytes # Metadata header section length limits, in bytes

View File

@ -1 +1 @@
3msj7fgyxgpfsjvvtcji7a4tkjbna6jmpealv6mun7435jjyptctfxyd.onion,chz7aarrmhxnefa6jx7ai3h3f5oy4sz5x4o5bbhfcq4xr3zbvsynaoad.onion,llqcrrf5cdk7p277eynepnvoo4ggrnybmp2daqtsr2hshitlmvbipdqd.onion b5pllmmlfzrw67bw3qll53qw66uryw4evmj6iirkhzj5taosvrigs5qd.onion

View File

@ -7,16 +7,16 @@
}, },
"general": { "general": {
"announce_node": true, "announce_node": true,
"dev_mode": false, "dev_mode": true,
"display_header": false, "display_header": false,
"general.random_bind_ip": false, "general.random_bind_ip": false,
"hide_created_blocks": true, "hide_created_blocks": true,
"insert_deniable_blocks": true, "insert_deniable_blocks": false,
"max_block_age": 2678400, "max_block_age": 2678400,
"minimum_block_pow": 4, "minimum_block_pow": 4,
"minimum_send_pow": 4, "minimum_send_pow": 4,
"public_key": "", "public_key": "",
"random_bind_ip": true, "random_bind_ip": false,
"security_level": 0, "security_level": 0,
"show_notifications": true, "show_notifications": true,
"socket_servers": false, "socket_servers": false,
@ -35,7 +35,7 @@
"verbosity": "default" "verbosity": "default"
}, },
"onboarding": { "onboarding": {
"done": false "done": true
}, },
"peers": { "peers": {
"max_connect": 1000, "max_connect": 1000,
@ -53,11 +53,11 @@
"tor": { "tor": {
"bridge_fingerprint": "", "bridge_fingerprint": "",
"bridge_ip": "", "bridge_ip": "",
"existing_control_password": "", "existing_control_password": "testt",
"existing_control_port": 0, "existing_control_port": 1338,
"existing_socks_port": 0, "existing_socks_port": 1337,
"use_bridge": false, "use_bridge": false,
"use_existing_tor": false, "use_existing_tor": true,
"v3onions": true "v3onions": true
}, },
"transports": { "transports": {

View File

@ -1 +1 @@
1580770843 1580781328