uhttpd: disable concurrent requests by default
[openwrt/openwrt.git] / package / network / services / uhttpd / files / uhttpd.config
index e14b9fefd74ebe88e6c9c12b92396993705532c0..8b7d84c20662e94e244c5103744ec77a7691fe7c 100644 (file)
@@ -24,7 +24,7 @@ config uhttpd main
        # If this number is exceeded, further requests are
        # queued until the number of running requests drops
        # below the limit again.
-       option max_requests 3
+       option max_requests 1
 
        # Maximum number of concurrent connections.
        # If this number is exceeded, further TCP connection
@@ -49,10 +49,13 @@ config uhttpd main
 #      list interpreter        ".php=/usr/bin/php-cgi"
 #      list interpreter        ".cgi=/usr/bin/perl"
 
-       # Lua url prefix and handler script.
-       # Lua support is disabled if no prefix given.
-#      option lua_prefix       /luci
-#      option lua_handler      /usr/lib/lua/luci/sgi/uhttpd.lua
+       # List of prefix->Lua handler mappings.
+       # Any request to an URL beneath the prefix
+       # will be dispatched to the associated Lua
+       # handler script. Lua support is disabled when
+       # no handler mappings are specified. Lua prefix
+       # matches have precedence over the CGI prefix.
+       list lua_prefix         "/cgi-bin/luci=/usr/lib/lua/luci/sgi/uhttpd.lua"
 
        # Specify the ubus-rpc prefix and socket path.
 #      option ubus_prefix      /ubus
@@ -103,9 +106,14 @@ config uhttpd main
        # except for development and debug purposes!
 #      option no_ubusauth      0
 
+       # For this instance of uhttpd use the listed httpauth
+       # sections to require Basic auth to the specified
+       # resources.
+#      list httpauth prefix_user
 
-# Certificate defaults for px5g key generator
-config cert px5g
+
+# Defaults for automatic certificate and key generation
+config cert defaults
 
        # Validity time
        option days             730
@@ -119,4 +127,9 @@ config cert px5g
        option location         Unknown
 
        # Common name
-       option commonname       OpenWrt
+       option commonname       '%D'
+
+# config httpauth prefix_user
+#      option prefix /protected/url/path
+#      option username user
+#      option password 'plaintext_or_md5_or_$p$user_for_system_user'