uhttpd: add default LuCI ucode prefix
[openwrt/staging/jow.git] / package / network / services / uhttpd / files / uhttpd.config
index f368d08e8bc703c7ec43fbabdd7cb0bfdfc6c395..a79f9921eaed943312823a0028152ff86ec3ebe1 100644 (file)
@@ -10,7 +10,7 @@ config uhttpd main
        list listen_https       [::]:443
 
        # Redirect HTTP requests to HTTPS if possible
-       option redirect_https   1
+       option redirect_https   0
 
        # Server document root
        option home             /www
@@ -57,6 +57,14 @@ config uhttpd main
        # matches have precedence over the CGI prefix.
        list lua_prefix         "/cgi-bin/luci=/usr/lib/lua/luci/sgi/uhttpd.lua"
 
+       # List of prefix->ucode handler mappings.
+       # Any request to an URL beneath the prefix
+       # will be dispatched to the associated ucode
+       # handler script. Ucode support is disabled when
+       # no handler mappings are specified. Ucode prefix
+       # matches have precedence over the CGI prefix.
+       list ucode_prefix       "/cgi-bin/luci=/usr/share/ucode/luci/uhttpd.uc"
+
        # Specify the ubus-rpc prefix and socket path.
 #      option ubus_prefix      /ubus
 #      option ubus_socket      /var/run/ubus/ubus.sock
@@ -119,13 +127,13 @@ config cert defaults
        option days             730
 
        # key type: rsa or ec
-       option key_type         rsa
+       option key_type         ec
 
        # RSA key size
        option bits             2048
 
        # EC curve name
-       # Curve names vary between mbedtls/px5g and openssl
+       # Curve names vary between px5g-{wolfssl,mbedtls} and openssl
        # P-256 or P-384 are guaranteed to work
        option ec_curve         P-256