docs: fix expose service recipe snippets
This commit is contained in:
parent
a7cec89077
commit
5b9a228e13
1 changed files with 4 additions and 3 deletions
|
|
@ -20,6 +20,7 @@ let
|
||||||
fqdn = "${subdomain}.${domain}";
|
fqdn = "${subdomain}.${domain}";
|
||||||
listenPort = 9000;
|
listenPort = 9000;
|
||||||
dataDir = "/var/lib/awesome";
|
dataDir = "/var/lib/awesome";
|
||||||
|
ldapGroup = "awesome_user";
|
||||||
in
|
in
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -75,11 +76,11 @@ shb.nginx.vhosts = [
|
||||||
{
|
{
|
||||||
inherit subdomain domain;
|
inherit subdomain domain;
|
||||||
ssl = config.shb.certs.certs.letsencrypt.${domain};
|
ssl = config.shb.certs.certs.letsencrypt.${domain};
|
||||||
upstream = "http://127.0.0.1:${toString config.services.calibre-web.listen.port}";
|
upstream = "http://127.0.0.1:${toString listenPort}";
|
||||||
authEndpoint = "https://${config.shb.authelia.subdomain}.${config.shb.authelia.domain}";
|
authEndpoint = "https://${config.shb.authelia.subdomain}.${config.shb.authelia.domain}";
|
||||||
autheliaRules = [{
|
autheliaRules = [{
|
||||||
policy = "one_factor";
|
policy = "one_factor";
|
||||||
subject = [ "group:${config.shb.lldap.ensureGroups.calibre_user.name}" ];
|
subject = [ "group:${ldapGroup}" ];
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
@ -120,7 +121,7 @@ shb.restic.instances.awesome = {
|
||||||
request.sourceDirectories = [ dataDir ];
|
request.sourceDirectories = [ dataDir ];
|
||||||
settings.enable = true;
|
settings.enable = true;
|
||||||
settings.passphrase.result = config.shb.sops.secret.awesome.result;
|
settings.passphrase.result = config.shb.sops.secret.awesome.result;
|
||||||
settings.repository.path = "/srv/backup/awesome";
|
settings.repository.path = config.services.awesome.dataDir;
|
||||||
};
|
};
|
||||||
|
|
||||||
shb.sops.secret."awesome" = {
|
shb.sops.secret."awesome" = {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue