Added openSSL support

Backend host is https only if TLS is enabled
This commit is contained in:
Sergio R. Caprile committed 2022-06-16 11:59:06 -03:00
1 parent e021d7cd9d
commit fb446022e2
2 files changed
+15 -9

No files matched your search

+7 -3
View File
@@ -5,10 +5,14 @@
// 1. Run `make`. This builds and starts a proxy on port 8000
// 2. Start your browser, go to https://localhost:8000
//
// To enable SSL/TLS, build it like this:
// make MBEDTLS_DIR=/path/to/your/mbedtls/installation
// To enable SSL/TLS, add SSL=OPENSSL or SSL=MBEDTLS
static const char *s_backend_url = "https://cesanta.com";
static const char *s_backend_url =
#if defined(MG_ENABLE_MBEDTLS) || defined(MG_ENABLE_OPENSSL)
"https://cesanta.com";
#else
"http://info.cern.ch";
#endif
static const char *s_listen_url = "http://localhost:8000";
#include "mongoose.h"