mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-30 21:18:25 +00:00
Init tls in dash, use dash in u5-usb
This commit is contained in:
1 parent
b45e0fbcb4
commit
e9845a7dac
10 files changed
+80
-49
No files matched your search
+3
-1
@@ -18,7 +18,7 @@
|
||||
#define MG_MODBUS_ADDR "tcp://0.0.0.0:8502"
|
||||
#else
|
||||
#define MG_HTTP_ADDR "http://0.0.0.0:80"
|
||||
#define MG_HTTPS_ADDR "http://0.0.0.0:443"
|
||||
#define MG_HTTPS_ADDR "https://0.0.0.0:443"
|
||||
#define MG_MODBUS_ADDR "tcp://0.0.0.0:502"
|
||||
#endif
|
||||
#endif
|
||||
@@ -99,6 +99,8 @@ struct mg_dash {
|
||||
// - The returned directory must be nonempty and must not contain ',' or '=',
|
||||
// because it is used as an mg_http_serve_opts::root_dir mapping target.
|
||||
bool (*files_dir)(const struct mg_dash_user *u, char *buf, size_t len);
|
||||
struct mg_str tls_cert; // HTTPS listener certificate, PEM. Empty: no HTTPS
|
||||
struct mg_str tls_key; // HTTPS listener private key, PEM
|
||||
};
|
||||
|
||||
#define MG_DASH_ADD_FIELD_SET(dash_, set_) \
|
||||
|
||||
Reference in new issue
Block a user