uhttpd: rename certificate defaults section
[openwrt/openwrt.git] / package / network / services / uhttpd / files / uhttpd.config
index 683e032fb47e88fa6af1f62aecaeeb103db56490..fab516051433821e2837e57da90eba8f29a7ad4d 100644 (file)
@@ -3,11 +3,14 @@ config uhttpd main
 
        # HTTP listen addresses, multiple allowed
        list listen_http        0.0.0.0:80
-#      list listen_http        [::]:80
+       list listen_http        [::]:80
 
        # HTTPS listen addresses, multiple allowed
        list listen_https       0.0.0.0:443
-#      list listen_https       [::]: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'