Development
This commit is contained in:
parent
275ccd0bac
commit
1c8fbc60c0
2 changed files with 6 additions and 2 deletions
|
|
@ -330,7 +330,7 @@ def _config_datasource(name):
|
||||||
f'<b>P:</b> •••</div>')
|
f'<b>P:</b> •••</div>')
|
||||||
elif ptype in ('cloudflare', 'duckdns'):
|
elif ptype in ('cloudflare', 'duckdns'):
|
||||||
tok = p.get('api_token', '')
|
tok = p.get('api_token', '')
|
||||||
row['credentials'] = f'<b>API Token:</b> {e(tok[:16])}...' if tok else '(not set)'
|
row['credentials'] = f'<b>API Token:</b> {e(tok[:24])}...' if tok else '(not set)'
|
||||||
else:
|
else:
|
||||||
row['credentials'] = '-'
|
row['credentials'] = '-'
|
||||||
row['hostnames'] = json.dumps(p.get('hostnames', p.get('subdomains', [])))
|
row['hostnames'] = json.dumps(p.get('hostnames', p.get('subdomains', [])))
|
||||||
|
|
@ -1493,7 +1493,7 @@ def render_layout(view_id, content_html, tokens):
|
||||||
text = e(item.get('detail', item.get('name', '')))
|
text = e(item.get('detail', item.get('name', '')))
|
||||||
tip = item.get('suggestion', '')
|
tip = item.get('suggestion', '')
|
||||||
if tip:
|
if tip:
|
||||||
text += f' <span style="opacity:0.75">- {e(tip)}</span>'
|
text += f' <span style="opacity:0.75">{e(tip)}</span>'
|
||||||
problem_bars += f'<div class="info-bar {cls}">{text}</div>\n'
|
problem_bars += f'<div class="info-bar {cls}">{text}</div>\n'
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
|
||||||
|
|
@ -599,6 +599,10 @@ def main():
|
||||||
print(" and that port 80 and 443 are forwarded to this machine.")
|
print(" and that port 80 and 443 are forwarded to this machine.")
|
||||||
print()
|
print()
|
||||||
print("Done.")
|
print("Done.")
|
||||||
|
print()
|
||||||
|
print(" Next step: use the web dashboard to configure your network, or")
|
||||||
|
print(f" configure {SCRIPT_DIR}/core.json manually and then run:")
|
||||||
|
print(f" sudo python3 {SCRIPT_DIR}/core.py --apply")
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue