diff --git a/renderer.py b/renderer.py index 42115aa..7e70e25 100644 --- a/renderer.py +++ b/renderer.py @@ -91,25 +91,25 @@ def render_overview():
| IP Prefixes | """; - if str(config_yaml["ip_prefixes"]): general_content += str(config_yaml["ip_prefixes"]) - else: general_content += "N/A" - general_content +=""" |
| Server URL | """; - if str(config_yaml["server_url"]): general_content += str(config_yaml["server_url"]) - else: general_content += "N/A" - general_content +=""" |
| Updates Disabled? | """; - if str(config_yaml["disable_check_updates"]): general_content += str(config_yaml["disable_check_updates"]) - else: general_content += "N/A" - general_content +=""" |
| Ephemeral Node Timeout | """; - if str(config_yaml["ephemeral_node_inactivity_timeout"]): general_content += str(config_yaml["ephemeral_node_inactivity_timeout"]); - else: general_content += "N/A" - general_content +=""" |
| Node Update Check Interval | """; - if str(config_yaml["node_update_check_interval"]): general_content += str(config_yaml["node_update_check_interval"]) - else: general_content += "N/A" - general_content +=""" |
| Server URL | """; + if str(config_yaml["server_url"]): general_content += str(config_yaml["server_url"]) + else: general_content += "N/A" + general_content +=""" |
| Updates Disabled? | """; + if str(config_yaml["disable_check_updates"]): general_content += str(config_yaml["disable_check_updates"]) + else: general_content += "N/A" + general_content +=""" |
| Ephemeral Node Timeout | """; + if str(config_yaml["ephemeral_node_inactivity_timeout"]): general_content += str(config_yaml["ephemeral_node_inactivity_timeout"]); + else: general_content += "N/A" + general_content +=""" |
| Node Update Check Interval | """; + if str(config_yaml["node_update_check_interval"]): general_content += str(config_yaml["node_update_check_interval"]) + else: general_content += "N/A" + general_content +=""" |
| Issuer | """ - if str(config_yaml["oidc"]["issuer"]) : oidc_content += str(config_yaml["oidc"]["issuer"]) - else: oidc_content += "N/A" - oidc_content += """ |
| Client ID | """ - if str(config_yaml["oidc"]["client_id"]) : oidc_content += str(config_yaml["oidc"]["client_id"]) - else: oidc_content += "N/A" - oidc_content += """ |
| Scope | """ - if str(config_yaml["oidc"]["scope"]) : oidc_content += str(config_yaml["oidc"]["scope"]) - else: oidc_content += "N/A" - oidc_content += """ |
| Token Expiry | """ - if str(config_yaml["oidc"]["use_expiry_from_token"]) : oidc_content += str(config_yaml["oidc"]["use_expiry_from_token"]) - else: oidc_content += "N/A" - oidc_content += """ |
| Expiry | """ - if str(config_yaml["oidc"]["expiry"]) : oidc_content += str(config_yaml["oidc"]["expiry"]) - else: oidc_content += "N/A" - oidc_content += """ |
| Client ID | """ + if str(config_yaml["oidc"]["client_id"]) : oidc_content += str(config_yaml["oidc"]["client_id"]) + else: oidc_content += "N/A" + oidc_content += """ |
| Scope | """ + if str(config_yaml["oidc"]["scope"]) : oidc_content += str(config_yaml["oidc"]["scope"]) + else: oidc_content += "N/A" + oidc_content += """ |
| Token Expiry | """ + if str(config_yaml["oidc"]["use_expiry_from_token"]) : oidc_content += str(config_yaml["oidc"]["use_expiry_from_token"]) + else: oidc_content += "N/A" + oidc_content += """ |
| Expiry | """ + if str(config_yaml["oidc"]["expiry"]) : oidc_content += str(config_yaml["oidc"]["expiry"]) + else: oidc_content += "N/A" + oidc_content += """ |
| Enabled | """ - if str(config_yaml["derp"]["server"]["enabled"]) : derp_content+= str(config_yaml["derp"]["server"]["enabled"]) - else: derp_content+= "N/A" - derp_content+= """ |
| Region ID | """ - if str(config_yaml["derp"]["server"]["region_id"]) : derp_content+= str(config_yaml["derp"]["server"]["region_id"]) - else: derp_content+= "N/A" - derp_content+= """ |
| Region Code | """ - if str(config_yaml["derp"]["server"]["region_code"]) : derp_content+= str(config_yaml["derp"]["server"]["region_code"]) - else: derp_content+= "N/A" - derp_content+= """ |
| Region Name | """ - if str(config_yaml["derp"]["server"]["region_name"]) : derp_content+= str(config_yaml["derp"]["server"]["region_name"]) - else: derp_content+= "N/A" - derp_content+= """ |
| STUN Address | """ - if str(config_yaml["derp"]["server"]["stun_listen_addr"]) : derp_content+= str(config_yaml["derp"]["server"]["stun_listen_addr"]) - else: derp_content+= "N/A" - derp_content+= """ |
| Region ID | """ + if str(config_yaml["derp"]["server"]["region_id"]) : derp_content+= str(config_yaml["derp"]["server"]["region_id"]) + else: derp_content+= "N/A" + derp_content+= """ |
| Region Code | """ + if str(config_yaml["derp"]["server"]["region_code"]) : derp_content+= str(config_yaml["derp"]["server"]["region_code"]) + else: derp_content+= "N/A" + derp_content+= """ |
| Region Name | """ + if str(config_yaml["derp"]["server"]["region_name"]) : derp_content+= str(config_yaml["derp"]["server"]["region_name"]) + else: derp_content+= "N/A" + derp_content+= """ |
| STUN Address | """ + if str(config_yaml["derp"]["server"]["stun_listen_addr"]) : derp_content+= str(config_yaml["derp"]["server"]["stun_listen_addr"]) + else: derp_content+= "N/A" + derp_content+= """ |
| Nameservers | """ - if str(config_yaml["dns_config"]["nameservers"]): dns_content += str(config_yaml["dns_config"]["nameservers"]) - else: dns_content += "N/A" - dns_content += """ |
| MagicDNS | """ - if str(config_yaml["dns_config"]["magic_dns"]) : dns_content += str(config_yaml["dns_config"]["magic_dns"]) - else: dns_content += "N/A" - dns_content += """ |
| Domains | """ - if str(config_yaml["dns_config"]["domains"]) : dns_content += str(config_yaml["dns_config"]["domains"]) - else: dns_content += "N/A" - dns_content += """ |
| Base Domain | """ - if str(config_yaml["dns_config"]["base_domain"]): dns_content += str(config_yaml["dns_config"]["base_domain"]) - else: dns_content += "N/A" - dns_content += """ |
| MagicDNS | """ + if str(config_yaml["dns_config"]["magic_dns"]) : dns_content += str(config_yaml["dns_config"]["magic_dns"]) + else: dns_content += "N/A" + dns_content += """ |
| Domains | """ + if str(config_yaml["dns_config"]["domains"]) : dns_content += str(config_yaml["dns_config"]["domains"]) + else: dns_content += "N/A" + dns_content += """ |
| Base Domain | """ + if str(config_yaml["dns_config"]["base_domain"]): dns_content += str(config_yaml["dns_config"]["base_domain"]) + else: dns_content += "N/A" + dns_content += """ |