forked from chmorgan/libesphttpd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKconfig
106 lines (87 loc) · 3.15 KB
/
Kconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#ESP-IDF Kconfig configuration file. Not used for ESP8266 RTOS/non-RTOS SDKs.
menuconfig ESPHTTPD_ENABLED
bool "esphttpd"
help
Select this option to enable libesphttpd and show the submodule with libesphttpd configuration
config ESPHTTPD_STACK_SIZE
int "Stack size of ESP-HTTPD task"
depends on ESPHTTPD_ENABLED
range 1024 16384
default 4096
help
Stack size reserved for the esp-httpd main task plus CGIs.
config ESPHTTPD_PROC_AFFINITY
bool "Processor Affinity Support"
depends on ESPHTTPD_ENABLED
default n
help
Enable Processor Affinity Support
config ESPHTTPD_PROC_CORE
int "Bind to Processor Core"
depends on ESPHTTPD_PROC_AFFINITY
range 0 1
default 0
help
Select Core 0 or Core 1
config ESPHTTPD_PROC_PRI
int "Process Task Priority"
depends on ESPHTTPD_ENABLED
range 1 17
default 4
help
Set esphttpd Process Task Priority
config ESPHTTPD_SHUTDOWN_SUPPORT
bool "Enable shutdown support"
depends on ESPHTTPD_ENABLED
default n
help
Add support for server shutdown. Adds ~500 bytes of code.
config ESPHTTPD_CORS_SUPPORT
bool "CORS support"
depends on ESPHTTPD_ENABLED
help
Enable support for CORS, cross origin resource sharing.
NOTE: Requires 256 bytes of RAM for each connection
config ESPHTTPD_HTMLDIR
string "Directory (on the build machine) where the static files served by the webserver are"
depends on ESPHTTPD_ENABLED
default "html/"
config ESPHTTPD_USEUGLIFYJS
bool "Compress JS with uglifyjs"
depends on ESPHTTPD_ENABLED
default n
help
Compress JS files with the uglifyjs compressor. Needs uglifyjs installed.
config ESPHTTPD_SO_REUSEADDR
bool "Set SO_REUSEADDR to avoid waiting for a port in TIME_WAIT."
depends on ESPHTTPD_ENABLED
default n
help
Requires LWIP_SO_REUSE to be enabled.
Sets the SO_REUSEADDR flag on a socket prior to attempting to bind(). Avoids the condition where
the bind() calls will fail while the port is in TIME_WAIT for a number of minutes.
config ESPHTTPD_SSL_SUPPORT
bool "Enable SSL support"
depends on ESPHTTPD_ENABLED
default n
help
SSL connections require ~32k of ram each.
Enabling this allows the server to be placed into ssl mode.
SSL servers require certificates. Steps to use:
- Place a 'cacert.der' and 'prvtkey.der' files in your app directory.
- To create self certified certificates:
$ openssl req -sha256 -newkey rsa:4096 -nodes -keyout key.pem -x509 -days 365 -out certificate.pem
- To generate .der certificates/keys from .pem certificates/keys:
$ openssl x509 -outform der -in certificate.pem -out certificate.der
$ openssl rsa -outform der -in key.pem -out key.der
- Create a 'component.mk' file in your app directory and add these lines to it:
COMPONENT_EMBED_TXTFILES := cacert.der
COMPONENT_EMBED_TXTFILES += prvtkey.der
config ESPHTTPD_BACKLOG_SUPPORT
bool "Write data to backlog when it can't be sent"
depends on ESPHTTPD_ENABLED
default n
help
A non-os specific option. FreeRTOS uses blocking sockets so data will always be sent and there is
no need for the backlog.
If you are using FreeRTOS you'll save codespace by leaving this option disabled.