mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Configure dokuwiki users
This commit is contained in:
parent
1268fdf509
commit
424e8355f9
2 changed files with 16 additions and 2 deletions
|
|
@ -1,10 +1,19 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
configureWiki = name: {
|
||||
|
||||
sops.secrets."usersFile-${name}" = {
|
||||
owner = "dokuwiki";
|
||||
key = "wiki/${name}/users_file";
|
||||
restartUnits = [ "phpfpm-dokuwiki-${name}.${config.networking.domain}.service" ];
|
||||
};
|
||||
|
||||
services.dokuwiki.sites = {
|
||||
"${name}.${config.networking.domain}" = {
|
||||
enable = true;
|
||||
stateDir = "/nix/var/data/dokuwiki/${name}/data";
|
||||
usersFile = config.sops.secrets."usersFile-${name}".path;
|
||||
disableActions = "register";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue