services: vikunja: centralize fqdn construction
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
parent
ee24f14950
commit
14632d40a7
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue