2019-07-18 05:11:52 +00:00
|
|
|
from utils import identifyhome
|
2019-09-20 16:25:12 +00:00
|
|
|
import os
|
2019-07-18 05:11:52 +00:00
|
|
|
home = identifyhome.identify_home()
|
2019-07-18 17:40:48 +00:00
|
|
|
if not home.endswith('/'): home += '/'
|
2019-07-18 05:11:52 +00:00
|
|
|
|
2019-09-20 16:25:12 +00:00
|
|
|
app_root = os.path.dirname(os.path.realpath(__file__)) + '/../../'
|
2019-07-18 05:11:52 +00:00
|
|
|
usage_file = home + 'disk-usage.txt'
|
|
|
|
block_data_location = home + 'blocks/'
|
2019-07-25 16:14:13 +00:00
|
|
|
contacts_location = home + 'contacts/'
|
2019-07-18 05:11:52 +00:00
|
|
|
public_API_host_file = home + 'public-host.txt'
|
|
|
|
private_API_host_file = home + 'private-host.txt'
|
|
|
|
bootstrap_file_location = 'static-data/bootstrap-nodes.txt'
|
|
|
|
data_nonce_file = home + 'block-nonces.dat'
|
2019-07-18 17:40:48 +00:00
|
|
|
forward_keys_file = home + 'forward-keys.db'
|
2019-07-20 00:41:15 +00:00
|
|
|
cached_storage = home + 'cachedstorage.dat'
|
2019-08-02 23:00:04 +00:00
|
|
|
announce_cache = home + 'announcecache.dat'
|
2019-07-27 02:42:55 +00:00
|
|
|
export_location = home + 'block-export/'
|
2019-08-12 03:32:58 +00:00
|
|
|
upload_list = home + 'upload-list.json'
|
2019-09-11 03:56:20 +00:00
|
|
|
config_file = home + 'config.json'
|
2019-09-20 16:25:12 +00:00
|
|
|
daemon_mark_file = app_root + '/daemon-true.txt'
|
2019-10-08 00:02:12 +00:00
|
|
|
lock_file = home + 'onionr.lock'
|
2019-07-18 17:40:48 +00:00
|
|
|
|
2019-09-28 05:37:24 +00:00
|
|
|
site_cache = home + 'onionr-sites.txt'
|
|
|
|
|
2020-02-01 00:23:48 +00:00
|
|
|
tor_hs_loc = home + 'hs/'
|
2019-07-18 17:40:48 +00:00
|
|
|
tor_hs_address_file = home + 'hs/hostname'
|
|
|
|
|
2019-07-18 23:07:18 +00:00
|
|
|
run_check_file = home + '.runcheck'
|
|
|
|
|
2019-07-19 04:59:44 +00:00
|
|
|
data_nonce_file = home + 'block-nonces.dat'
|
|
|
|
|
2019-11-27 00:01:32 +00:00
|
|
|
keys_file = home + 'keys.txt'
|
|
|
|
|
|
|
|
onboarding_mark_file = home + 'onboarding-completed'
|
2020-02-08 09:07:07 +00:00
|
|
|
|
|
|
|
log_file = home + 'onionr.log'
|