diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-12-29 21:29:46 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-12-29 21:35:57 +0100 |
commit | bf8a8b284c17beacf5cd2534e7137946d628fdf7 (patch) | |
tree | 26512e6efb19bf52b48d090c95bd4138417d290b /modules/cgit/templates/hugo-authentication.lua.epp | |
parent | Add nginx and letsencrypt modules. (diff) | |
download | webdav_server-bf8a8b284c17beacf5cd2534e7137946d628fdf7.tar.gz webdav_server-bf8a8b284c17beacf5cd2534e7137946d628fdf7.tar.xz |
Move cgit conf to hiera.
Diffstat (limited to '')
-rw-r--r-- | modules/cgit/templates/hugo-authentication.lua.epp (renamed from modules/cgit/files/filters/hugo-authentication.lua) | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/modules/cgit/files/filters/hugo-authentication.lua b/modules/cgit/templates/hugo-authentication.lua.epp index df97579..0c73644 100644 --- a/modules/cgit/files/filters/hugo-authentication.lua +++ b/modules/cgit/templates/hugo-authentication.lua.epp @@ -24,17 +24,15 @@ local protected_repos = { } local public_repos = {} -public_repos["wiki-public" ] = true -public_repos["lyslib" ] = true -public_repos["calp" ] = true -public_repos["texttv" ] = true -public_repos["scheme-monad" ] = true -public_repos["scheme/math-parse" ] = true -public_repos["file-descriptor-graph"] = true +<%- $cgit::public_repos.each |$repo| { -%> +public_repos["<%= $repo %>"] = true +<%- } -%> -- A list of users and hashes, generated with `mkpasswd -m sha-512 -R 300000`. local users = { - hugo = "$6$13z1Pf.U8itrCRX6$g2BZpaMk1CLiT6117paWXB2qdQFRc3rsGWL4iF5h5QbHo27oljTdHk69oQWAvqlVf13aLTUF3nYw65lEp88r/1" + <%- $cgit::users.each |$user| { -%> + <%= $user['name'] %> = "<%= $user['pass'] %>" + <%- } -%> } -- Set this to a path this script can write to for storing a persistent |