added template files

This commit is contained in:
Lewis Wynne 2026-04-10 04:16:26 +01:00
parent bda7f2df49
commit 283f091aed
4 changed files with 146 additions and 9 deletions

View file

@ -1,11 +1,5 @@
{ guestbook, config, ... }:
{ guestbook, ... }:
{
sops.secrets.guestbook-telegram-token = {
sopsFile = ../../secrets/guestbook.yaml;
key = "telegram_bot_token";
owner = "guestbook";
};
services.guestbook = {
enable = true;
package = guestbook.packages.aarch64-linux.default;
@ -33,8 +27,7 @@
maxDuration = 20;
};
telegram = {
enable = true;
botTokenFile = config.sops.secrets.guestbook-telegram-token.path;
enable = false;
chatId = 8669496383;
};
security = {
@ -51,6 +44,8 @@
};
styles = {
templateFile = "./templates/default.html";
successTemplateFile = "./templates/success.html";
separator = "-----------";
labels = {
submit = "Submit";