h
This commit is contained in:
parent
540ac42eac
commit
98f576b2c3
5 changed files with 111 additions and 75 deletions
|
|
@ -4,7 +4,9 @@
|
|||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
domain = ${config.server.misc.lauti.subdomain}.${config.networking.domain};
|
||||
in
|
||||
{
|
||||
options = {
|
||||
server.misc.lauti = {
|
||||
|
|
@ -14,6 +16,10 @@
|
|||
description = "lauti port";
|
||||
};
|
||||
public = lib.mkEnableOption "make lauti public";
|
||||
domain = lib.mkOption {
|
||||
default = "";
|
||||
description = "lauti domain";
|
||||
};
|
||||
subdomain = lib.mkOption {
|
||||
default = "lauti";
|
||||
description = "lauti subdomain";
|
||||
|
|
@ -26,7 +32,7 @@
|
|||
enable = config.server.misc.lauti.enable;
|
||||
settings = {
|
||||
LAUTI_ADMIN_EMAIL = "lauti@${config.networking.domain}";
|
||||
LAUTI_BASE_URL = "https://${config.server.misc.lauti.subdomain}.${config.networking.domain}";
|
||||
LAUTI_BASE_URL = "https://${domain}";
|
||||
LAUTI_OSM_TILE_CACHE_DIR = "/var/lib/lauti/osm";
|
||||
LAUTI_OSM_TILE_SERVER = "https://tile.openstreetmap.org/{z}/{x}/{y}.png";
|
||||
LAUTI_TIMEZONE = "Europe/Berlin";
|
||||
|
|
@ -36,7 +42,7 @@
|
|||
};
|
||||
nginx = {
|
||||
virtualHosts = {
|
||||
"${config.server.misc.lauti.subdomain}.${config.networking.domain}" =
|
||||
"${domain}" =
|
||||
if config.server.misc.lauti.public then
|
||||
{
|
||||
enableACME = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue