diff options
author | Daniel Dickinson <lede@cshore.thecshore.com> | 2016-08-13 19:24:59 -0400 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2016-10-31 13:22:51 +0100 |
commit | 98c86e29705cb1e73e4f2e16044f1e73cff32e31 (patch) | |
tree | 84e93cd71f196365f89027decc4bcee6eb295ca5 /package/network/services/uhttpd/files/uhttpd.config | |
parent | 671cb35880308404a17c430c4b3b13dd506a5671 (diff) | |
download | upstream-98c86e29705cb1e73e4f2e16044f1e73cff32e31.tar.gz upstream-98c86e29705cb1e73e4f2e16044f1e73cff32e31.tar.bz2 upstream-98c86e29705cb1e73e4f2e16044f1e73cff32e31.zip |
uhttpd: Add Basic Auth config
We add an 'httpauth' section type that contains the options:
prefix: What virtual or real URL is being protected
username: The username for the Basic Auth dialogue
password: Hashed (crypt()) or plaintext password for the Basic Auth dialogue
httpauth section names are given included as list
items to the instances to which they are to be applied.
Further any existing httpd.conf file (really whatever
is configured in the instance, but default of
/etc/httpd.conf) is appended to the per-instance httpd.conf
Signed-off-by: Daniel Dickinson <lede@cshore.thecshore.com>
Diffstat (limited to 'package/network/services/uhttpd/files/uhttpd.config')
-rw-r--r-- | package/network/services/uhttpd/files/uhttpd.config | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/package/network/services/uhttpd/files/uhttpd.config b/package/network/services/uhttpd/files/uhttpd.config index fab5160514..89f99aaeea 100644 --- a/package/network/services/uhttpd/files/uhttpd.config +++ b/package/network/services/uhttpd/files/uhttpd.config @@ -103,6 +103,11 @@ 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 + # Defaults for automatic certificate and key generation config cert defaults @@ -120,3 +125,8 @@ config cert defaults # Common name 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' |