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 | ea76a5d8ea33b5be2e36f756c34244010816badf (patch) | |
tree | ad06bf22402492d6cf62917a1b9cccf8e326cea8 /files | |
parent | Minor fixes (diff) | |
download | cgit-ea76a5d8ea33b5be2e36f756c34244010816badf.tar.gz cgit-ea76a5d8ea33b5be2e36f756c34244010816badf.tar.xz |
Move cgit conf to hiera.
Diffstat (limited to '')
-rw-r--r-- | templates/hugo-authentication.lua.epp (renamed from files/filters/hugo-authentication.lua) | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/files/filters/hugo-authentication.lua b/templates/hugo-authentication.lua.epp index df97579..0c73644 100644 --- a/files/filters/hugo-authentication.lua +++ b/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 |