uhttpd: rename certificate defaults section
[openwrt/openwrt.git] / package / network / services / uhttpd / files / uhttpd.config
index 83734af5a9328bf385e2db6416f950fdcc9d105b..fab516051433821e2837e57da90eba8f29a7ad4d 100644 (file)
@@ -9,6 +9,9 @@ config uhttpd main
        list listen_https       0.0.0.0:443
        list listen_https       [::]:443
 
+       # Redirect HTTP requests to HTTPS if possible
+       option redirect_https   1
+
        # Server document root
        option home             /www
 
@@ -80,7 +83,7 @@ config uhttpd main
        option tcp_keepalive    1
 
        # Basic auth realm, defaults to local hostname
-#      option realm    OpenWrt
+#      option realm    Lede
 
        # Configuration file in busybox httpd format
 #      option config   /etc/httpd.conf
@@ -101,19 +104,19 @@ config uhttpd main
 #      option no_ubusauth      0
 
 
-# Certificate defaults for px5g key generator
-config cert px5g
+# Defaults for automatic certificate and key generation
+config cert defaults
 
        # Validity time
        option days             730
 
        # RSA key size
-       option bits             1024
+       option bits             2048
 
        # Location
-       option country          DE
-       option state            Berlin
-       option location         Berlin
+       option country          ZZ
+       option state            Somewhere
+       option location         Unknown
 
        # Common name
-       option commonname       OpenWrt
+       option commonname       '%D'