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