The configuration below is used to set the default values of the configuration settings.
(self)
| 593 | self._apply_network_context(context, configure_db=False) |
| 594 | self._refresh_network_components() |
| 595 | logger.info( |
| 596 | f"Active network context updated: ssid={self.active_network_ssid or 'default'} " |
| 597 | f"slug={self.active_network_slug}" |
| 598 | ) |
| 599 | |
| 600 | def get_default_config(self): |
| 601 | """ The configuration below is used to set the default values of the configuration settings.""" |
| 602 | """ It can be used to reset the configuration settings to their default values.""" |
| 603 | """ You can mofify the json file shared_config.json or on the web page to change the default values of the configuration settings.""" |
| 604 | default_profile = DISPLAY_PROFILES.get(DEFAULT_EPD_TYPE, {"ref_width": 122, "ref_height": 250, "default_flip": False}) |
| 605 | return { |
| 606 | "__title_Ragnar__": "Settings", |
| 607 | "manual_mode": False, |
| 608 | "websrv": True, |
| 609 | "web_bind_interface": "", |
| 610 | "web_increment": False, |
| 611 | "debug_mode": False, |
| 612 | "scan_vuln_running": True, |
| 613 | "scan_vuln_no_ports": False, |
| 614 | "enable_attacks": False, |
| 615 | "release_gate_enabled": False, |
| 616 | "release_gate_message": "", |
| 617 | "retry_success_actions": True, |
| 618 | "retry_failed_actions": True, |
| 619 | "blacklistcheck": True, |
| 620 | "displaying_csv": True, |
| 621 | "log_debug": False, |
| 622 | "log_info": False, |
| 623 | "log_warning": True, |
| 624 | "log_error": True, |
| 625 | "log_critical": True, |
| 626 | "terminal_log_level": "all", |
| 627 | |
| 628 | "startup_delay": 2, |
| 629 | "web_delay": 2, |
| 630 | "screen_delay": 1, |
| 631 | "comment_delaymin": 15, |
| 632 | "comment_delaymax": 30, |
| 633 | "livestatus_delay": 8, |
| 634 | "image_display_delaymin": 2, |
| 635 | "image_display_delaymax": 8, |
| 636 | "scan_interval": 180, |
| 637 | "scan_vuln_interval": 300, |
| 638 | "failed_retry_delay": 180, |
| 639 | "success_retry_delay": 300, |
| 640 | "action_timeout": 300, |
| 641 | "vuln_scan_timeout": 1800, |
| 642 | "ref_width": default_profile["ref_width"], |
| 643 | "ref_height": default_profile["ref_height"], |
| 644 | "epd_type": DEFAULT_EPD_TYPE, |
| 645 | "screen_reversed": 180 if default_profile.get("default_flip", False) else 0, |
| 646 | "gc9a01_mascot_color": "#96C8FF", |
| 647 | "ssd1306_i2c_address": "0x3C", |
| 648 | "lcd1602_i2c_address": "0x27", |
| 649 | "lcd1602_i2c_bus": 1, |
| 650 | "display_brightness": 8, |
| 651 | "spi_clock_mhz": 2, |
| 652 | "max7219_spi_port": 0, |