1# General config
2CONFIG_MAIN_STACK_SIZE=3072
3CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
4CONFIG_SHELL=y
5CONFIG_LOG=y
6CONFIG_ENTROPY_GENERATOR=y
7CONFIG_TEST_RANDOM_GENERATOR=y
8CONFIG_INIT_STACKS=y
9CONFIG_ZVFS_OPEN_MAX=32
10CONFIG_POSIX_API=y
11CONFIG_FDTABLE=y
12CONFIG_ZVFS_POLL_MAX=32
13
14# Eventfd
15CONFIG_EVENTFD=y
16
17# Networking config
18CONFIG_NETWORKING=y
19CONFIG_NET_IPV4=y
20CONFIG_NET_IPV6=y
21CONFIG_NET_TCP=y
22CONFIG_NET_SOCKETS=y
23CONFIG_NET_CONNECTION_MANAGER=y
24CONFIG_NET_SHELL=y
25CONFIG_NET_STATISTICS=y
26CONFIG_NET_STATISTICS_USER_API=y
27CONFIG_NET_LOG=y
28
29# JSON
30CONFIG_JSON_LIBRARY=y
31
32# HTTP parser
33CONFIG_HTTP_PARSER_URL=y
34CONFIG_HTTP_PARSER=y
35CONFIG_HTTP_SERVER=y
36CONFIG_HTTP_SERVER_WEBSOCKET=y
37
38# Network buffers
39CONFIG_NET_PKT_RX_COUNT=16
40CONFIG_NET_PKT_TX_COUNT=16
41CONFIG_NET_BUF_RX_COUNT=128
42CONFIG_NET_BUF_TX_COUNT=128
43CONFIG_NET_CONTEXT_NET_PKT_POOL=y
44
45# IP address options
46CONFIG_NET_IF_UNICAST_IPV6_ADDR_COUNT=3
47CONFIG_NET_IF_MCAST_IPV6_ADDR_COUNT=4
48CONFIG_NET_MAX_CONTEXTS=32
49CONFIG_NET_MAX_CONN=32
50
51# Network address config
52CONFIG_NET_CONFIG_SETTINGS=y
53CONFIG_NET_CONFIG_NEED_IPV4=y
54CONFIG_NET_CONFIG_NEED_IPV6=y
55CONFIG_NET_CONFIG_MY_IPV4_ADDR="192.0.2.1"
56CONFIG_NET_CONFIG_PEER_IPV4_ADDR="192.0.2.2"
57CONFIG_NET_CONFIG_MY_IPV4_GW="192.0.2.2"
58CONFIG_NET_CONFIG_MY_IPV6_ADDR="2001:db8::1"
59CONFIG_NET_CONFIG_PEER_IPV6_ADDR="2001:db8::2"
60
61# TLS configuration
62CONFIG_MBEDTLS=y
63CONFIG_MBEDTLS_BUILTIN=y
64CONFIG_MBEDTLS_ENABLE_HEAP=y
65CONFIG_MBEDTLS_HEAP_SIZE=60000
66CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN=2048
67CONFIG_MBEDTLS_USE_PSA_CRYPTO=n
68CONFIG_NET_SOCKETS_SOCKOPT_TLS=y
69CONFIG_NET_SOCKETS_TLS_MAX_CONTEXTS=6
70CONFIG_TLS_CREDENTIALS=y
71CONFIG_TLS_MAX_CREDENTIALS_NUMBER=5
72CONFIG_MBEDTLS_ECDH_C=y
73CONFIG_MBEDTLS_ECDSA_C=y
74CONFIG_MBEDTLS_ECP_C=y
75CONFIG_MBEDTLS_ECP_DP_SECP256R1_ENABLED=y
76CONFIG_MBEDTLS_KEY_EXCHANGE_RSA_ENABLED=n
77CONFIG_MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED=y
78CONFIG_MBEDTLS_CIPHER_CCM_ENABLED=y
79CONFIG_MBEDTLS_CIPHER_GCM_ENABLED=y
80
81# Networking tweaks
82# Required to handle large number of consecutive connections,
83# e.g. when testing with ApacheBench.
84CONFIG_NET_TCP_TIME_WAIT_DELAY=0
85
86# Device drivers
87CONFIG_GPIO=y
88CONFIG_LED=y
89
90# Network debug config
91CONFIG_NET_SOCKETS_LOG_LEVEL_DBG=n
92CONFIG_NET_HTTP_LOG_LEVEL_DBG=n
93CONFIG_NET_IPV6_LOG_LEVEL_DBG=n
94CONFIG_NET_IPV6_ND_LOG_LEVEL_DBG=n
95