Work on fixing node uptime
parent
4bc2bf5db5
commit
b4d80da3ff
|
@ -59,8 +59,8 @@ parser.add_argument(
|
||||||
"--show-stats", help="Display curses output of Onionr stats",
|
"--show-stats", help="Display curses output of Onionr stats",
|
||||||
type=int, default=0)
|
type=int, default=0)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--skip-onboarding", help="Skip Onionr onboarding",
|
"--onboarding", help="Use Onionr onboarding (if first load)",
|
||||||
type=int, default=0)
|
type=int, default=1)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--security-level", help="Set Onionr security level",
|
"--security-level", help="Set Onionr security level",
|
||||||
type=int, default=0)
|
type=int, default=0)
|
||||||
|
@ -76,6 +76,9 @@ parser.add_argument(
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--private-key', help='Use existing private key',
|
'--private-key', help='Use existing private key',
|
||||||
type=int, default=1)
|
type=int, default=1)
|
||||||
|
parser.add_argument(
|
||||||
|
'--animated-background', help='Animated background on webui index. Just for looks.',
|
||||||
|
type=int, default=0)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
p = Popen([sub_script, 'version'], stdout=DEVNULL)
|
p = Popen([sub_script, 'version'], stdout=DEVNULL)
|
||||||
|
@ -88,14 +91,14 @@ from coredb import blockmetadb
|
||||||
with open(config_file, 'r') as cf:
|
with open(config_file, 'r') as cf:
|
||||||
config = ujson.loads(cf.read())
|
config = ujson.loads(cf.read())
|
||||||
|
|
||||||
if args.skip_onboarding:
|
if not args.onboarding:
|
||||||
config['onboarding']['done'] = True
|
config['onboarding']['done'] = True
|
||||||
print('Disabling onboarding')
|
|
||||||
if not args.random_localhost_ip:
|
if not args.random_localhost_ip:
|
||||||
print('Disabling randomized localhost')
|
|
||||||
config['general']['random_bind_ip'] = False
|
config['general']['random_bind_ip'] = False
|
||||||
if not args.use_tor:
|
if not args.use_tor:
|
||||||
config['transports']['tor'] = False
|
config['transports']['tor'] = False
|
||||||
|
if not args.animated_background:
|
||||||
|
config['ui']['animated_background'] = False
|
||||||
config['general']['display_header'] = False
|
config['general']['display_header'] = False
|
||||||
config['general']['security_level'] = args.security_level
|
config['general']['security_level'] = args.security_level
|
||||||
|
|
||||||
|
|
|
@ -79,8 +79,8 @@ HashedControlPassword """ + str(password) + """
|
||||||
if config.get('general.security_level', 1) == 0:
|
if config.get('general.security_level', 1) == 0:
|
||||||
torrc_data += """\nHiddenServiceDir """ + home_dir + """hs/
|
torrc_data += """\nHiddenServiceDir """ + home_dir + """hs/
|
||||||
\n""" + hs_ver + """\n
|
\n""" + hs_ver + """\n
|
||||||
HiddenServiceNumIntroductionPoints 6
|
HiddenServiceNumIntroductionPoints 20
|
||||||
HiddenServiceMaxStreams 100
|
HiddenServiceMaxStreams 500
|
||||||
HiddenServiceMaxStreamsCloseCircuit 1
|
HiddenServiceMaxStreamsCloseCircuit 1
|
||||||
HiddenServicePort 80 """ + api_server_ip + """:""" + str(hs_port)
|
HiddenServicePort 80 """ + api_server_ip + """:""" + str(hs_port)
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
.quickview-body{
|
.quickview-body{
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
background-color: #38292c;
|
background-color: #282f2f;
|
||||||
|
}
|
||||||
|
.quickview-block{
|
||||||
|
padding-left: 1em;
|
||||||
|
padding-top: 5px;
|
||||||
|
font-size: 1em;
|
||||||
}
|
}
|
Loading…
Reference in New Issue