[habits] Adds beaver habits. [oidc] Sets up OIDC auth forwarding, it works, but not sure which header.
This commit is contained in:
18
system/hosts/mcp/containers/havenisms.com/beaver-habits.nix
Normal file
18
system/hosts/mcp/containers/havenisms.com/beaver-habits.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./beaver-habits.nix
|
||||
./chat.nix
|
||||
./storyden.nix
|
||||
];
|
||||
}
|
||||
|
||||
17
system/hosts/mcp/containers/havenisms.com/storyden.nix
Normal file
17
system/hosts/mcp/containers/havenisms.com/storyden.nix
Normal 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}";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user