mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2025-12-12 01:40:52 +01:00
Add UI for syslog configuration to network view
This commit is contained in:
committed by
Thomas Basler
parent
4b5659456c
commit
3d39349876
@@ -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];
|
||||
|
||||
@@ -71,6 +71,8 @@ enum WebApiError {
|
||||
NetworkDns1Invalid,
|
||||
NetworkDns2Invalid,
|
||||
NetworkApTimeoutInvalid,
|
||||
NetworkSyslogHostnameLength,
|
||||
NetworkSyslogPort,
|
||||
|
||||
NtpBase = 9000,
|
||||
NtpServerLength,
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user