services: vikunja: centralize fqdn construction

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2024-08-17 14:58:33 +02:00
parent ee24f14950
commit 14632d40a7
Signed by: c8h4
GPG key ID: 6817E9C75C0785D7

View file

@ -1,6 +1,6 @@
{ config, my, secrets, ... }:
let vikunjaDbCfg = config.services.vikunja.database;
let fqdn = "todo.${my.domain}";
in {
sops.secrets."vikunja/env" = {
sopsFile = ../secrets/sops/vikunja.yaml;
@ -10,7 +10,7 @@ in {
services.vikunja = {
enable = true;
frontendScheme = "https";
frontendHostname = "todo.${my.domain}";
frontendHostname = fqdn;
environmentFiles = [ secrets."vikunja/env".path ];
database = {
type = "postgres";
@ -19,7 +19,7 @@ in {
settings = {
service = {
timezone = "Europe/Vienna";
publicurl = "todo.${my.domain}";
publicurl = fqdn;
enableregistration = false;
};
log.http = "off";