[homepage] Fixes widget API calls
This commit is contained in:
@@ -2,8 +2,7 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
# Additional configuration
|
# Additional configuration
|
||||||
imports =
|
imports = [
|
||||||
[
|
|
||||||
./containers/grafana.nix
|
./containers/grafana.nix
|
||||||
./containers/nextcloud.nix
|
./containers/nextcloud.nix
|
||||||
./containers/prometheus.nix
|
./containers/prometheus.nix
|
||||||
@@ -58,13 +57,15 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
virtualisation.oci-containers.backend = "podman";
|
virtualisation.oci-containers.backend = "podman";
|
||||||
virtualisation.oci-containers.containers = let
|
virtualisation.oci-containers.containers =
|
||||||
|
let
|
||||||
domain = "havenisms.com";
|
domain = "havenisms.com";
|
||||||
hostRule = host: "Host(`${host}.${domain}`)";
|
hostRule = host: "Host(`${host}.${domain}`)";
|
||||||
localNet = "192.168.0.0/16";
|
localNet = "192.168.0.0/16";
|
||||||
localNetRule = "ClientIP(`${localNet}`)";
|
localNetRule = "ClientIP(`${localNet}`)";
|
||||||
localHostRule = host: "${localNetRule} && ${hostRule host}";
|
localHostRule = host: "${localNetRule} && ${hostRule host}";
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
traefik = {
|
traefik = {
|
||||||
image = "traefik";
|
image = "traefik";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
@@ -300,7 +301,7 @@
|
|||||||
"-l=homepage.href=https://readarr.${domain}"
|
"-l=homepage.href=https://readarr.${domain}"
|
||||||
"-l=homepage.description=E-book acquisition"
|
"-l=homepage.description=E-book acquisition"
|
||||||
"-l=homepage.widget.type=readarr"
|
"-l=homepage.widget.type=readarr"
|
||||||
"-l=homepage.widget.url=http://readarr:8787"
|
"-l=homepage.widget.url=http://readarr.havenisms.com:8787"
|
||||||
"-l=homepage.widget.key={{HOMEPAGE_FILE_READARR_KEY}}"
|
"-l=homepage.widget.key={{HOMEPAGE_FILE_READARR_KEY}}"
|
||||||
];
|
];
|
||||||
volumes = [
|
volumes = [
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
{ config, ... }:
|
||||||
{ config, pkgs, ... }:
|
let
|
||||||
let inherit (import ./lib.nix config) hostRule; in
|
inherit (import ./lib.nix config) hostRule;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
virtualisation.oci-containers.containers.nextcloud = {
|
virtualisation.oci-containers.containers.nextcloud = {
|
||||||
image = "docker.io/library/nextcloud:latest";
|
image = "docker.io/library/nextcloud:latest";
|
||||||
@@ -14,7 +15,7 @@ let inherit (import ./lib.nix config) hostRule; in
|
|||||||
"-l=homepage.href=https://cloud.${config.domainName}"
|
"-l=homepage.href=https://cloud.${config.domainName}"
|
||||||
"-l=homepage.description=Productivity suite"
|
"-l=homepage.description=Productivity suite"
|
||||||
"-l=homepage.widget.type=nextcloud"
|
"-l=homepage.widget.type=nextcloud"
|
||||||
"-l=homepage.widget.url=http://nextcloud:8080"
|
"-l=homepage.widget.url=http://nextcloud.havenisms.com:8080"
|
||||||
];
|
];
|
||||||
volumes = [
|
volumes = [
|
||||||
"/tank/nextcloud:/var/www/html"
|
"/tank/nextcloud:/var/www/html"
|
||||||
@@ -27,3 +28,4 @@ let inherit (import ./lib.nix config) hostRule; in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user