Add UI for syslog configuration to network view

This commit is contained in:
Tobias Diedrich
2024-09-14 14:41:49 +02:00
committed by Thomas Basler
parent 4b5659456c
commit 3d39349876
14 changed files with 94 additions and 2 deletions

View File

@@ -14,6 +14,8 @@
#define WIFI_MAX_PASSWORD_STRLEN 64
#define WIFI_MAX_HOSTNAME_STRLEN 31
#define SYSLOG_MAX_HOSTNAME_STRLEN 128
#define NTP_MAX_SERVER_STRLEN 31
#define NTP_MAX_TIMEZONE_STRLEN 50
#define NTP_MAX_TIMEZONEDESCR_STRLEN 50
@@ -83,6 +85,12 @@ struct CONFIG_T {
bool Enabled;
} Mdns;
struct {
bool Enabled;
char Hostname[SYSLOG_MAX_HOSTNAME_STRLEN + 1];
uint32_t Port;
} Syslog;
struct {
char Server[NTP_MAX_SERVER_STRLEN + 1];
char Timezone[NTP_MAX_TIMEZONE_STRLEN + 1];

View File

@@ -71,6 +71,8 @@ enum WebApiError {
NetworkDns1Invalid,
NetworkDns2Invalid,
NetworkApTimeoutInvalid,
NetworkSyslogHostnameLength,
NetworkSyslogPort,
NtpBase = 9000,
NtpServerLength,

View File

@@ -22,6 +22,9 @@
#define MDNS_ENABLED false
#define SYSLOG_ENABLED false
#define SYSLOG_PORT 514
#define NTP_SERVER_OLD "pool.ntp.org"
#define NTP_SERVER "opendtu.pool.ntp.org"
#define NTP_TIMEZONE "CET-1CEST,M3.5.0,M10.5.0/3"