feat: Added excalidraw selfhosted

This commit is contained in:
uttarayan21
2025-07-30 06:44:52 +05:30
parent 411902ff7d
commit 0bdf23cd4a
4 changed files with 65 additions and 92 deletions

View File

@@ -0,0 +1,46 @@
{...}: {
# virtualisation.arion = {
# projects = {
# excalidraw = {
# excalidraw = {
# service.image = "ghcr.io/excalidraw/excalidraw:latest";
# service.volumes = [
# "/etc/localtime:/etc/localtime:ro"
# "/run/dbus:/run/dbus:ro"
# ];
# };
# };
# };
# };
virtualisation.oci-containers = {
backend = "docker";
containers = {
excalidraw = {
image = "excalidraw/excalidraw:latest";
ports = ["127.0.0.1:5959:80"];
volumes = [];
};
};
};
services.caddy.virtualHosts."draw.darksailor.dev".extraConfig = ''
forward_auth localhost:5555 {
uri /api/authz/forward-auth
copy_headers Remote-User Remote-Groups Remote-Email Remote-Name
}
reverse_proxy localhost:5959
'';
services.authelia = {
instances.darksailor = {
settings = {
access_control = {
rules = [
{
domain = "draw.darksailor.dev";
policy = "one_factor";
}
];
};
};
};
};
}