[habits] Adds beaver habits. [oidc] Sets up OIDC auth forwarding, it works, but not sure which header.

This commit is contained in:
2025-07-25 12:22:33 -07:00
parent b3c6e951ee
commit 19d8c5c097
7 changed files with 59 additions and 5 deletions

View File

@@ -0,0 +1,18 @@
{ ... }:
{
virtualisation.web-containers.containers.beaver-habits = {
hostname = "habits";
domain = "havenisms.com";
image = "daya0576/beaverhabits:latest";
port = 8080;
oauthProxy = true;
volumes = [
"/tank/beaver-habits:/app/.user/"
];
environment = {
HABITS_STORAGE = "DATABASE";
INDEX_HABIT_DATE_COLUMNS = "7";
TRUSTED_EMAIL_HEADER = "X-Oidc-Email";
};
};
}

View File

@@ -1,6 +1,8 @@
{ ... }:
{
imports = [
./beaver-habits.nix
./chat.nix
./storyden.nix
];
}

View File

@@ -0,0 +1,17 @@
{ config, ... }:
let
inherit (import ../lib.nix config) havenisms;
in
{
virtualisation.web-containers.containers.storyden = {
image = "ghcr.io/southclaws/storyden";
port = 8000;
hostname = "storyden";
domain = havenisms;
environment = {
PUBLIC_WEB_ADDRESS = "https://storyden.${havenisms}";
PUBLIC_API_ADDRESS = "https://storyden.${havenisms}";
};
};
}